mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix getting branch name not working if HEAD is also a tag
This commit is contained in:
parent
44c460627b
commit
4df7935799
@ -10,7 +10,7 @@ prev_rev, current_rev, flags = sys.argv[1:]
|
||||
|
||||
|
||||
def get_branch_name(rev):
|
||||
return subprocess.check_output(['git', 'name-rev', '--name-only', rev]).decode('utf-8').strip()
|
||||
return subprocess.check_output(['git', 'name-rev', '--name-only', '--refs=refs/heads/*', rev]).decode('utf-8').strip()
|
||||
|
||||
|
||||
base = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user