From 883636510d7a6745336a29de5890b59be585e735 Mon Sep 17 00:00:00 2001 From: alexjacks92 Date: Mon, 27 Jan 2014 16:11:05 -0500 Subject: [PATCH] Added reset command before checkout. --- test/script/srcupdater.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/script/srcupdater.py b/test/script/srcupdater.py index c444be2346..168bc7da7c 100755 --- a/test/script/srcupdater.py +++ b/test/script/srcupdater.py @@ -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)