1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-22 05:06:09 +02:00

Bite the bullet and automatically convert old style refs/heads/p4 repositories

to the new style refs/remotes/p4 branching.

Signed-off-by: Simon Hausmann <simon@lst.de>
This commit is contained in:
Simon Hausmann 2007-05-17 21:18:53 +02:00
parent c6d44cb1a1
commit 48df6fd850

View File

@ -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: