Skip to content

Commit

Permalink
Always record the git branch command as success (#3693)
Browse files Browse the repository at this point in the history
This is causing the build to be marked as FAILED when the repository
has no branches.

Closes #3644
  • Loading branch information
humitos authored and agjohnson committed Mar 9, 2018
1 parent 8b0350f commit 1edd47a
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
Expand Up @@ -122,8 +122,8 @@ def parse_tags(self, data):
@property
def branches(self):
# Only show remote branches
retcode, stdout, _ = self.run('git', 'branch', '-r')
# error (or no tags found)
retcode, stdout, _ = self.run('git', 'branch', '-r', record_as_success=True)
# error (or no branches found)
if retcode != 0:
return []
return self.parse_branches(stdout)
Expand Down

0 comments on commit 1edd47a

Please sign in to comment.