hyprpm: Use proper path to update repo when processing user provided revision (#5414)

This commit is contained in:
zakk4223 2024-04-04 11:33:36 -04:00 committed by GitHub
parent 81766647f2
commit 846162cce1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -510,7 +510,7 @@ bool CPluginManager::updatePlugins(bool forceUpdateAll) {
if (!repo.rev.empty()) {
progress.printMessageAbove(std::string{Colors::RESET} + " → Plugin has revision set, resetting: " + repo.rev);
std::string ret = execAndGet("git -C /tmp/hyprpm reset --hard --recurse-submodules " + repo.rev);
std::string ret = execAndGet("git -C /tmp/hyprpm/update reset --hard --recurse-submodules " + repo.rev);
if (ret.compare(0, 6, "fatal:") == 0) {
std::cout << "\n" << std::string{Colors::RED} + "" + Colors::RESET + " could not check out revision " + repo.rev + ": shell returned:\n" + ret;
return false;