Skip to content

Commit

Permalink
Don't try to examine nonexistant stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
Amber Yust committed Oct 5, 2010
1 parent 72e387b commit 1362b91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions slave/buildslave/commands/git.py
Expand Up @@ -106,8 +106,9 @@ def _didFetch(self, res):
def maybeNotDoVCFallback(self, res):
# If we were unable to find the branch/SHA on the remote,
# clobbering the repo won't help any, so just abort the chain
if "Couldn't find remote ref" in self.command.stderr:
raise AbandonChain(-1)
if hasattr(self.command, 'stderr'):
if "Couldn't find remote ref" in self.command.stderr:
raise AbandonChain(-1)

# Update first runs "git clean", removing local changes,
# if the branch to be checked out has changed. This, combined
Expand Down

0 comments on commit 1362b91

Please sign in to comment.