mirror of https://github.com/apache/lucene.git
LUCENE-7718: buildAndPushRelease.py script should refer to working tree instead of directory
This commit is contained in:
parent
3a9933960e
commit
a6e14ec6d2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue