mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 04:29:49 +01:00
hyprpm: Use proper path to update repo when processing user provided revision (#5414)
This commit is contained in:
parent
81766647f2
commit
846162cce1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue