Changed git update command
This commit is contained in:
parent
17c810d897
commit
14ee4cdf8c
|
|
@ -62,7 +62,7 @@ def update_git():
|
||||||
## Not the most elegant way to make sure git conflicts doesn't occur (yea fml)
|
## Not the most elegant way to make sure git conflicts doesn't occur (yea fml)
|
||||||
os.remove('/root/archinstall/archinstall.py')
|
os.remove('/root/archinstall/archinstall.py')
|
||||||
os.remove('/root/archinstall/README.md')
|
os.remove('/root/archinstall/README.md')
|
||||||
output = run('git pull')
|
output = run('git fetch --all') # git reset --hard origin/<branch_name>
|
||||||
|
|
||||||
if b'error:' in output:
|
if b'error:' in output:
|
||||||
print('[N] Could not update git source for some reason.')
|
print('[N] Could not update git source for some reason.')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue