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:
parent
9e4c1b671c
commit
e908d15977
@ -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]"
|
||||
|
Loading…
Reference in New Issue
Block a user