5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-08 12:01:09 +08:00

SQOOP-2425: Sqoop2: Precommit: Do not wipe out working directory on finish

(Jarek Jarcec Cecho via Richard Zhou)
This commit is contained in:
Richard Zhou 2015-08-05 09:56:18 +08:00
parent 9e4c1b671c
commit e908d15977

View File

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