Merge "Always resolve branches to a SHA if a tag isn't available"

This commit is contained in:
Jenkins
2017-09-27 16:08:36 +00:00
committed by Gerrit Code Review

View File

@@ -207,7 +207,7 @@ def check_ancestry(workdir, repo, old_version, sha):
def get_latest_tag(workdir, repo, sha=None):
cmd = ['git', 'describe', '--abbrev=0']
cmd = ['git', 'describe', '--abbrev=0', '--always']
if sha is not None:
cmd.append(sha)
try: