Apache Solr open-source search software
LUCENE-7718: buildAndPushRelease.py script should refer to working tree instead of directory
Ishan Chattopadhyayaa6e14ec6d2d1
diff --git a/dev-tools/scripts/buildAndPushRelease.py b/dev-tools/scripts/buildAndPushRelease.pyindex e34c94316d9..d7422148d7b 100644--- a/dev-tools/scripts/buildAndPushRelease.py+++ b/dev-tools/scripts/buildAndPushRelease.py@@ -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