AddonMgr: Use hard reset for addon git repair

This commit is contained in:
Kurt Kremitzki
2017-07-05 02:42:33 -05:00
committed by wmayer
parent 85e0031292
commit b193ff3885

View File

@@ -453,7 +453,7 @@ class CheckWBWorker(QtCore.QThread):
with bare_repo.config_writer() as cw:
cw.set('core', 'bare', False)
repo = git.Repo(clonedir)
repo.head.reset()
repo.head.reset('--hard')
gitrepo = git.Git(clonedir)
gitrepo.fetch()
if "git pull" in gitrepo.status():
@@ -667,7 +667,7 @@ class InstallWorker(QtCore.QThread):
with bare_repo.config_writer() as cw:
cw.set('core', 'bare', False)
repo = git.Repo(clonedir)
repo.head.reset()
repo.head.reset('--hard')
repo = git.Git(clonedir)
answer = repo.pull()
else: