Skip to content

Commit 3753b4c

Browse files
authored
Merge pull request #3437 from rtfd/humitos/git/hotfix
Do not use double quotes on git command with --format option
2 parents dd10112 + 3385305 commit 3753b4c

File tree

1 file changed

+2
-2
lines changed
  • readthedocs/vcs_support/backends

1 file changed

+2
-2
lines changed

readthedocs/vcs_support/backends/git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ def tags(self):
8686
# of annotated tags pointing to tagged commits.
8787
retcode, stdout, _ = self.run(
8888
'git', 'for-each-ref',
89-
'--format="%(if)%(*objectname)%(then)%(*objectname)'
90-
'%(else)%(objectname)%(end) %(refname)"',
89+
'--format=%(if)%(*objectname)%(then)%(*objectname)'
90+
'%(else)%(objectname)%(end) %(refname)',
9191
'refs/tags')
9292
# error (or no tags found)
9393
if retcode != 0:

0 commit comments

Comments
 (0)