mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 14:11:59 -07:00
hyprpm: fix incorrect commits number parsing (#5437)
This commit is contained in:
@@ -73,7 +73,7 @@ SHyprlandVersion CPluginManager::getHyprlandVersion() {
|
|||||||
std::string hlcommits;
|
std::string hlcommits;
|
||||||
|
|
||||||
if (HLVERCALL.contains("commits:")) {
|
if (HLVERCALL.contains("commits:")) {
|
||||||
hlcommits = HLVERCALL.substr(HLVERCALL.find("commits:") + 10);
|
hlcommits = HLVERCALL.substr(HLVERCALL.find("commits:") + 9);
|
||||||
hlcommits = hlcommits.substr(0, hlcommits.find(" "));
|
hlcommits = hlcommits.substr(0, hlcommits.find(" "));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ SHyprlandVersion CPluginManager::getHyprlandVersion() {
|
|||||||
} catch (...) { ; }
|
} catch (...) { ; }
|
||||||
|
|
||||||
if (m_bVerbose)
|
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};
|
ver = SHyprlandVersion{hlbranch, hlcommit, commits};
|
||||||
return ver;
|
return ver;
|
||||||
|
Reference in New Issue
Block a user