# HG changeset patch # User Jeff Hammel # Date 1296585276 28800 # Node ID a654af3c3f5054c2dfa535a594340a46c8af1f08 # Parent 1fb46d94bae626c192ec623006f50534583d2491 specify git directory diff -r 1fb46d94bae6 -r a654af3c3f50 autobot/changes/poller.py --- a/autobot/changes/poller.py Tue Feb 01 10:04:51 2011 -0800 +++ b/autobot/changes/poller.py Tue Feb 01 10:34:36 2011 -0800 @@ -400,7 +400,8 @@ commands = [ [ 'clone', self.repourl, self.workdir ] ] if self.branch != 'master': - commands.append(['checkout', self.branch]) + git_dir = self.workdir.rstrip('/') + '/.git' + commands.append(['--git-dir', git_dir, 'checkout', self.branch]) return commands def _fetch(self, _):