From a6e14ec6d2d176f8363efc46b0685fda9a0942b2 Mon Sep 17 00:00:00 2001 From: Ishan Chattopadhyaya Date: Tue, 28 Feb 2017 21:22:17 +0530 Subject: [PATCH] LUCENE-7718: buildAndPushRelease.py script should refer to working tree instead of directory --- dev-tools/scripts/buildAndPushRelease.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-tools/scripts/buildAndPushRelease.py b/dev-tools/scripts/buildAndPushRelease.py index 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