mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Merge pull request #457 from alexjacks92/master
Added reset command before checkout.
This commit is contained in:
commit
6284bc6aa1
@ -78,6 +78,9 @@ def gitPull(TskOrAutopsy, branch):
|
||||
ccwd = os.path.join("..", "..", "..", "sleuthkit")
|
||||
else:
|
||||
ccwd = os.path.join("..", "..")
|
||||
print("Resetting " + TskOrAutopsy)
|
||||
call = ["git", "reset", "--hard"]
|
||||
subprocess.call(call, stdout=sys.stdout, cwd=ccwd)
|
||||
print("Checking out " + branch)
|
||||
call = ["git", "checkout", branch]
|
||||
subprocess.call(call, stdout=sys.stdout, cwd=ccwd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user