mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 02:05:59 +01:00
hyprpm: fix incorrect commits number parsing (#5437)
This commit is contained in:
parent
12d75c0c26
commit
baad44b4ca
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue