LUCENE-6938: add TODO that we should also detect unpushed commits

This commit is contained in:
Mike McCandless 2016-02-11 10:07:05 -05:00
parent de9d4ac3b7
commit 7509b9c969
1 changed files with 3 additions and 1 deletions

View File

@ -61,8 +61,10 @@ def getGitRev():
status = os.popen('git status').read().strip() 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:
raise RuntimeError('git clone is dirty:\n\n%s' % status) raise RuntimeError('git clone is dirty:\n\n%s' % status)
# TODO: we should also detect unpushed changes here? Something like "git cherry -v origin/branch_5_5"?
print(' git clone is clean')
return os.popen('git rev-parse HEAD').read().strip() return os.popen('git rev-parse HEAD').read().strip()
def prepare(root, version, gpgKeyID, gpgPassword): def prepare(root, version, gpgKeyID, gpgPassword):
print() print()