changeset 179:a654af3c3f50

specify git directory
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 01 Feb 2011 10:34:36 -0800
parents 1fb46d94bae6
children d7e79194e971
files autobot/changes/poller.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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, _):