summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb4f128)
raw | patch | inline | side by side (parent: cb4f128)
author | Simon Hausmann <simon@lst.de> | |
Sun, 27 May 2007 13:48:01 +0000 (15:48 +0200) | ||
committer | Simon Hausmann <simon@lst.de> | |
Sun, 27 May 2007 13:48:01 +0000 (15:48 +0200) |
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4 | patch | blob | history |
index dbd5b3bcf1e3e6db668b04a8aa6eb327a8fc836a..aeefadcd66a25f88069a659ec4445bff87444453 100755 (executable)
print "Syncing with origin first by calling git fetch origin"
system("git fetch origin")
- createP4HeadRef = False;
-
if len(self.branch) == 0:
self.branch = self.refPrefix + "master"
if gitBranchExists("refs/heads/p4") and self.importIntoRemotes:
system("git branch -D p4");
# create it /after/ importing, when master exists
if not gitBranchExists(self.refPrefix + "HEAD") and self.importIntoRemotes:
- createP4HeadRef = True
+ system("git symbolic-ref %sHEAD %s" % (self.refPrefix, self.branch))
if len(args) == 0:
if self.hasOrigin:
self.gitOutput.close()
self.gitError.close()
- if createP4HeadRef:
- system("git symbolic-ref %sHEAD %s" % (self.refPrefix, self.branch))
-
return True
class P4Rebase(Command):