Skip to content

Commit

Permalink
Only checkout the proper branch in GitPoller
Browse files Browse the repository at this point in the history
  • Loading branch information
Amber Yust committed Dec 21, 2010
1 parent e7d1ff3 commit e126b64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion master/buildbot/changes/gitpoller.py
Expand Up @@ -65,7 +65,8 @@ def startService(self):

if not os.path.exists(self.workdir + r'/.git'):
log.msg('gitpoller: initializing working dir')
os.system(self.gitbin + ' clone ' + self.repourl + ' ' + self.workdir)
os.system(self.gitbin + ' clone --no-checkout ' + self.repourl + ' ' + self.workdir)
os.system('cd ' + self.workdir + ' && ' + self.gitbin + ' checkout ' + self.branch)

def describe(self):
status = ""
Expand Down

0 comments on commit e126b64

Please sign in to comment.