mirror of https://github.com/apache/lucene.git
LUCENE-6938: add TODO that we should also detect unpushed commits
This commit is contained in:
parent
de9d4ac3b7
commit
7509b9c969
|
@ -61,8 +61,10 @@ def getGitRev():
|
|||
status = os.popen('git status').read().strip()
|
||||
if 'nothing to commit, working directory clean' not in 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()
|
||||
|
||||
|
||||
def prepare(root, version, gpgKeyID, gpgPassword):
|
||||
print()
|
||||
|
|
Loading…
Reference in New Issue