mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 01:03:11 +02:00
Fix getting branch name not working if HEAD is also a tag
This commit is contained in:
parent
44c460627b
commit
4df7935799
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
|
||||
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…
Reference in a new issue