LUCENE-7718: buildAndPushRelease.py script should refer to working tree instead of directory

This commit is contained in:
Ishan Chattopadhyaya 2017-02-28 21:22:17 +05:30
parent 3a9933960e
commit a6e14ec6d2
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ def runAndSendGPGPassword(command, password):
def getGitRev():
status = os.popen('git status').read().strip()
if 'nothing to commit, working directory clean' not in status:
if 'nothing to commit, working directory clean' not in status and 'nothing to commit, working tree clean' not in status:
raise RuntimeError('git clone is dirty:\n\n%s' % status)
branch = os.popen('git rev-parse --abbrev-ref HEAD').read().strip()
command = 'git log origin/%s..' % branch