]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-p4.py
Merge branch 'dg/bswap-msvc'
[thirdparty/git.git] / git-p4.py
index 8af92a5a96aa8cb13940cd017bf015342b6bb9cd..6ae5bbfe999942f58122de442cb160b53d0b35b9 100755 (executable)
--- a/git-p4.py
+++ b/git-p4.py
@@ -4186,7 +4186,7 @@ class P4Clone(P4Sync):
 
         # create a master branch and check out a work tree
         if gitBranchExists(self.branch):
-            system([ "git", "branch", "master", self.branch ])
+            system([ "git", "branch", currentGitBranch(), self.branch ])
             if not self.cloneBare:
                 system([ "git", "checkout", "-f" ])
         else: