From baad44b4ca28d62fb9d86ed1f83650b6695b501d Mon Sep 17 00:00:00 2001 From: bvr-yr <130279855+bvr-yr@users.noreply.github.com> Date: Fri, 5 Apr 2024 06:40:44 +0300 Subject: [PATCH] hyprpm: fix incorrect commits number parsing (#5437) --- hyprpm/src/core/PluginManager.cpp | 4 ++-- 1 file 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;