mirror of
https://github.com/frej/fast-export.git
synced 2026-01-15 18:52:09 +01:00
Bite the bullet and automatically convert old style refs/heads/p4 repositories
to the new style refs/remotes/p4 branching.
This commit is contained in:
6
git-p4
6
git-p4
@@ -832,10 +832,12 @@ class P4Sync(Command):
|
||||
defaultImport = False
|
||||
|
||||
if len(self.branch) == 0:
|
||||
self.branch = "refs/remotes/p4/master"
|
||||
if gitBranchExists("refs/heads/p4"):
|
||||
self.branch = "p4"
|
||||
system("git update-ref %s refs/heads/p4" % self.branch)
|
||||
system("git symbolic-ref refs/remotes/p4/HEAD refs/remotes/p4/master")
|
||||
system("git branch -D p4");
|
||||
else:
|
||||
self.branch = "refs/remotes/p4/master"
|
||||
defaultImport = True
|
||||
|
||||
if len(args) == 0:
|
||||
|
||||
Reference in New Issue
Block a user