mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 00:45:57 +01:00
hyprpm: Make sure we're in git repo before getting new hash (#4303)
This commit is contained in:
parent
2ad2e1d5f5
commit
33fe3a2e7f
1 changed files with 2 additions and 2 deletions
|
@ -550,7 +550,7 @@ bool CPluginManager::updatePlugins(bool forceUpdateAll) {
|
||||||
newrepo.plugins.clear();
|
newrepo.plugins.clear();
|
||||||
execAndGet(
|
execAndGet(
|
||||||
"cd /tmp/hyprpm/update/ && git pull --recurse-submodules && git reset --hard --recurse-submodules"); // repo hash in the state.toml has to match head and not any pin
|
"cd /tmp/hyprpm/update/ && git pull --recurse-submodules && git reset --hard --recurse-submodules"); // repo hash in the state.toml has to match head and not any pin
|
||||||
std::string repohash = execAndGet("git rev-parse HEAD");
|
std::string repohash = execAndGet("cd /tmp/hyprpm/update && git rev-parse HEAD");
|
||||||
if (repohash.length() > 0)
|
if (repohash.length() > 0)
|
||||||
repohash.pop_back();
|
repohash.pop_back();
|
||||||
newrepo.hash = repohash;
|
newrepo.hash = repohash;
|
||||||
|
|
Loading…
Reference in a new issue