mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +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")
|
gppth = make_local_path("..", "GitPullOutput" + TskOrAutopsy + ".txt")
|
||||||
attachl.append(gppth)
|
attachl.append(gppth)
|
||||||
gpout = open(gppth, 'a')
|
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
|
toPull = "https://www.github.com/alexjacks92/" + TskOrAutopsy
|
||||||
call = ["git", "pull", toPull, branch]
|
call = ["git", "pull", toPull, branch]
|
||||||
if TskOrAutopsy == "sleuthkit":
|
if TskOrAutopsy == "sleuthkit":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user