mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 21:27:20 +03:00
hyprpm: Use proper path to update repo when processing user provided revision (#5414)
This commit is contained in:
parent
81766647f2
commit
846162cce1
@ -510,7 +510,7 @@ bool CPluginManager::updatePlugins(bool forceUpdateAll) {
|
|||||||
if (!repo.rev.empty()) {
|
if (!repo.rev.empty()) {
|
||||||
progress.printMessageAbove(std::string{Colors::RESET} + " → Plugin has revision set, resetting: " + repo.rev);
|
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) {
|
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;
|
std::cout << "\n" << std::string{Colors::RED} + "✖" + Colors::RESET + " could not check out revision " + repo.rev + ": shell returned:\n" + ret;
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user