зеркало из https://github.com/microsoft/git.git
Merge branch 'js/p4-default-branch'
"git p4" now honors init.defaultBranch configuration. * js/p4-default-branch: p4: respect init.defaultBranch
This commit is contained in:
Коммит
ca8870d7c1
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче