summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c6d44cb)
raw | patch | inline | side by side (parent: c6d44cb)
author | Simon Hausmann <simon@lst.de> | |
Thu, 17 May 2007 19:18:53 +0000 (21:18 +0200) | ||
committer | Simon Hausmann <simon@lst.de> | |
Thu, 17 May 2007 19:18:53 +0000 (21:18 +0200) |
to the new style refs/remotes/p4 branching.
Signed-off-by: Simon Hausmann <simon@lst.de>
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4 | patch | blob | history |
index 3cc6481378e23e5d43b42f8ac30a0bea9ffd7727..cb9961a571eb8dacb43f085a803d942c83f1e245 100755 (executable)
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: