diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2020-11-08 08:41:51 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-09 13:01:47 -0800 |
commit | 1b09d1917f376d52e191102509d08303f8d26388 (patch) | |
tree | c55aa637b9408c68ef6a6e087f07dc61ff36421f | |
parent | Git 2.29.2 (diff) | |
download | tgif-1b09d1917f376d52e191102509d08303f8d26388.tar.xz |
p4: respect init.defaultBranch
In `git p4 clone`, we hard-code the branch name `master` instead of
looking what the _actual_ initial branch name is. Let's fix that.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-x | git-p4.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |