mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-11 23:46:15 +00:00
added git checkout before git pull.
This commit is contained in:
parent
d2056cb7f4
commit
a30a1ec510
@ -74,6 +74,13 @@ def gitPull(TskOrAutopsy, branch):
|
||||
gppth = make_local_path("..", "GitPullOutput" + TskOrAutopsy + ".txt")
|
||||
attachl.append(gppth)
|
||||
gpout = open(gppth, 'a')
|
||||
if TskOrAutopsy == "sleuthkit":
|
||||
ccwd = os.path.join("..", "..", "..", "sleuthkit")
|
||||
else:
|
||||
ccwd = os.path.join("..", "..")
|
||||
print("Checking out " + branch)
|
||||
call = ["git", "checkout", branch]
|
||||
subprocess.call(call, stdout=sys.stdout, cwd=ccwd)
|
||||
toPull = "https://www.github.com/alexjacks92/" + TskOrAutopsy
|
||||
call = ["git", "pull", toPull, branch]
|
||||
if TskOrAutopsy == "sleuthkit":
|
||||
|
Loading…
x
Reference in New Issue
Block a user