summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 65c5f3e)
raw | patch | inline | side by side (parent: 65c5f3e)
author | Simon Hausmann <simon@lst.de> | |
Fri, 25 May 2007 06:49:18 +0000 (08:49 +0200) | ||
committer | Simon Hausmann <simon@lst.de> | |
Fri, 25 May 2007 06:49:18 +0000 (08:49 +0200) |
existance of a ref)
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 1cce38a6f7d77cd4dd317c79e474d1e7b0d5de1f..e8a5c1fa316f2ac5be4fa32b145d233db31252a5 100755 (executable)
if len(args) == 0:
self.master = currentGitBranch()
- if len(self.master) == 0 or not os.path.exists("%s/refs/heads/%s" % (gitdir, self.master)):
+ if len(self.master) == 0 or not gitBranchExists("refs/heads/%s" % self.master):
die("Detecting current git branch failed!")
elif len(args) == 1:
self.master = args[0]
continue
update = False
- if not os.path.exists(gitdir + "/" + remoteHead):
+ if not gitBranchExists(remoteHead):
if self.verbose:
print "creating %s" % remoteHead
update = True