summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1c9d393)
raw | patch | inline | side by side (parent: 1c9d393)
author | Simon Hausmann <simon@lst.de> | |
Thu, 17 May 2007 18:26:58 +0000 (20:26 +0200) | ||
committer | Simon Hausmann <simon@lst.de> | |
Thu, 17 May 2007 18:26:58 +0000 (20:26 +0200) |
so that it's possible to have the import branch in refs/remotes.
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 a19ba474818d502794f2ee911d069f4a316721a7..4cd486eb3ae2e098e06d0617d5668fb36b82d068 100755 (executable)
if not gitBranchExists(self.branch) and gitBranchExists("origin"):
if not self.silent:
print "Creating %s branch in git repository based on origin" % self.branch
- system("git branch %s origin" % self.branch)
+ branch = self.branch
+ if not branch.startswith("refs"):
+ branch = "refs/heads/" + branch
+ system("git update-ref %s origin" % branch)
[self.previousDepotPath, p4Change] = extractDepotPathAndChangeFromGitLog(extractLogMessageFromGitCommit(self.branch))
if len(self.previousDepotPath) > 0 and len(p4Change) > 0: