Skip to content

Commit ca8870d

Browse files
committed
Merge branch 'js/p4-default-branch'
"git p4" now honors init.defaultBranch configuration. * js/p4-default-branch: p4: respect init.defaultBranch
2 parents 1e8ed50 + 1b09d19 commit ca8870d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-p4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4186,7 +4186,7 @@ def run(self, args):
41864186

41874187
# create a master branch and check out a work tree
41884188
if gitBranchExists(self.branch):
4189-
system([ "git", "branch", "master", self.branch ])
4189+
system([ "git", "branch", currentGitBranch(), self.branch ])
41904190
if not self.cloneBare:
41914191
system([ "git", "checkout", "-f" ])
41924192
else:

0 commit comments

Comments
 (0)