summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0126510)
raw | patch | inline | side by side (parent: 0126510)
author | Simon Hausmann <shausman@trolltech.com> | |
Fri, 25 May 2007 09:36:42 +0000 (11:36 +0200) | ||
committer | Simon Hausmann <shausman@trolltech.com> | |
Fri, 25 May 2007 09:36:42 +0000 (11:36 +0200) |
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
contrib/fast-import/git-p4 | patch | blob | history |
index ed5a5c593ccd3f85ae3698f5891160765f1f1b4d..d99237c632a68f2592ce3aaa57868a91cf67b2d9 100755 (executable)
# map from branch depot path to parent branch
self.knownBranches = {}
self.initialParents = {}
+ self.hasOrigin = gitBranchExists("origin")
if self.importIntoRemotes:
self.refPrefix = "refs/remotes/p4/"
self.refPrefix = "refs/heads/"
if self.syncWithOrigin:
- if gitBranchExists("origin"):
+ if self.hasOrigin:
if not self.silent:
print "Syncing with origin first by calling git fetch origin"
system("git fetch origin")
createP4HeadRef = True
if len(args) == 0:
- self.createOrUpdateBranchesFromOrigin()
+ if self.hasOrigin:
+ self.createOrUpdateBranchesFromOrigin()
self.listExistingP4GitBranches()
if len(self.p4BranchesInGit) > 1: