added git checkout before git pull.

This commit is contained in:
alexjacks92 2014-01-21 13:32:15 -05:00
parent d2056cb7f4
commit a30a1ec510

View File

@ -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":