Skip to content

Commit

Permalink
when listdir returns no files, clone
Browse files Browse the repository at this point in the history
Fixes #3112.
  • Loading branch information
djmitche committed Dec 14, 2014
1 parent 47693ca commit 6d82171
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions master/buildbot/steps/source/git.py
Expand Up @@ -577,6 +577,9 @@ def checkWithPathExists(exists):
d = self.runCommand(cmd)

def checkWithListdir(_):
if 'files' not in cmd.updates:
# no files - directory doesn't exist
return "clone"
files = cmd.updates['files'][0]
if '.git' in files:
return "update"
Expand Down

0 comments on commit 6d82171

Please sign in to comment.