diff options
| author | bvr-yr <130279855+bvr-yr@users.noreply.github.com> | 2024-04-05 06:40:44 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-05 04:40:44 +0100 |
| commit | baad44b4ca28d62fb9d86ed1f83650b6695b501d (patch) | |
| tree | 6628c48e8d404b2ef851ef61f14428300dbf8a2b /hyprpm/src/core/PluginManager.cpp | |
| parent | 12d75c0c26f7801699c20952eccce4ef5cf1084b (diff) | |
hyprpm: fix incorrect commits number parsing (#5437)
Diffstat (limited to 'hyprpm/src/core/PluginManager.cpp')
| -rw-r--r-- | hyprpm/src/core/PluginManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hyprpm/src/core/PluginManager.cpp b/hyprpm/src/core/PluginManager.cpp index 0677fa39..d895553b 100644 --- a/hyprpm/src/core/PluginManager.cpp +++ b/hyprpm/src/core/PluginManager.cpp @@ -73,7 +73,7 @@ SHyprlandVersion CPluginManager::getHyprlandVersion() { std::string hlcommits; if (HLVERCALL.contains("commits:")) { - hlcommits = HLVERCALL.substr(HLVERCALL.find("commits:") + 10); + hlcommits = HLVERCALL.substr(HLVERCALL.find("commits:") + 9); hlcommits = hlcommits.substr(0, hlcommits.find(" ")); } @@ -83,7 +83,7 @@ SHyprlandVersion CPluginManager::getHyprlandVersion() { } catch (...) { ; } if (m_bVerbose) - std::cout << Colors::BLUE << "[v] " << Colors::RESET << "parsed commit " << hlcommit << " at branch " << hlbranch << "\n"; + std::cout << Colors::BLUE << "[v] " << Colors::RESET << "parsed commit " << hlcommit << " at branch " << hlbranch << ", commits " << commits << "\n"; ver = SHyprlandVersion{hlbranch, hlcommit, commits}; return ver; |
