Skip to content

Commit 3385305

Browse files
committed
Do not use double quotes on git command with --format option
Ref: #3302 (comment)
1 parent 4a835b4 commit 3385305

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

+2-2
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)