From e908d1597715c51f0e098e28ec4ff4b67e2ac9d9 Mon Sep 17 00:00:00 2001 From: Richard Zhou Date: Wed, 5 Aug 2015 09:56:18 +0800 Subject: [PATCH] SQOOP-2425: Sqoop2: Precommit: Do not wipe out working directory on finish (Jarek Jarcec Cecho via Richard Zhou) --- dev-support/test-patch.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/dev-support/test-patch.py b/dev-support/test-patch.py index 4bd5a7dd..548faad5 100755 --- a/dev-support/test-patch.py +++ b/dev-support/test-patch.py @@ -182,14 +182,6 @@ def json_get_version(json): return versions -def git_cleanup(): - rc = execute("git clean -d -f", False) - if rc != 0: - print "ERROR: git clean failed" - rc = execute("git reset --hard HEAD", False) - if rc != 0: - print "ERROR: git reset failed" - def git_checkout(result, branch): if not branch: result.fatal("Branch wasn't specified nor was correctly guessed") @@ -399,7 +391,6 @@ def fatal(self, msg, bullets=[]): self.exit_handler() self.exit() def exit(self): - git_cleanup() sys.exit(0) usage = "usage: %prog [options]"