commit b7088751d30d27fc4d1b3995dd60289432926185
Author: John Carr <john.carr@unrouted.co.uk>
Date:   Fri Nov 14 13:44:12 2008 +0000

    Don't checkout a different branch under our feet

diff --git a/jhbuild/versioncontrol/git.py b/jhbuild/versioncontrol/git.py
index 2292b11..bd64d15 100644
--- a/jhbuild/versioncontrol/git.py
+++ b/jhbuild/versioncontrol/git.py
@@ -207,14 +207,6 @@ class GitBranch(Branch):
                 buildscript.execute(branch_cmd, cwd=cwd)
             buildscript.execute(['git', 'reset', '--hard', commit], cwd=cwd)
 
-        if self.branch:
-            try:
-                buildscript.execute(['git', 'checkout', self.branch], cwd=self.srcdir)
-            except CommandError:
-                buildscript.execute(['git', 'checkout', '-b', self.branch, self.branchname], cwd=self.srcdir)
-        else:
-            buildscript.execute(['git', 'checkout'], cwd=self.srcdir)
-
         buildscript.execute(['git', 'pull', '--rebase'])
 
         self._update_submodules(buildscript)
