Skip to content

Commit

Permalink
Do not use double quotes on git command with --format option
Browse files Browse the repository at this point in the history
humitos committed Dec 21, 2017
1 parent 4a835b4 commit 3385305
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readthedocs/vcs_support/backends/git.py
Original file line number Diff line number Diff line change
@@ -86,8 +86,8 @@ def tags(self):
# of annotated tags pointing to tagged commits.
retcode, stdout, _ = self.run(
'git', 'for-each-ref',
'--format="%(if)%(*objectname)%(then)%(*objectname)'
'%(else)%(objectname)%(end) %(refname)"',
'--format=%(if)%(*objectname)%(then)%(*objectname)'
'%(else)%(objectname)%(end) %(refname)',
'refs/tags')
# error (or no tags found)
if retcode != 0:

0 comments on commit 3385305

Please sign in to comment.