From 7c2db22e2df7998949c1040de5940f21406191b3 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 25 May 2007 08:49:18 +0200 Subject: [PATCH] Make git-p4 work with packed refs (don't use os.path.exists to check for the existance of a ref) --- git-p4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-p4 b/git-p4 index 1cce38a..e8a5c1f 100755 --- a/git-p4 +++ b/git-p4 @@ -412,7 +412,7 @@ class P4Submit(Command): 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] @@ -812,7 +812,7 @@ class P4Sync(Command): continue update = False - if not os.path.exists(gitdir + "/" + remoteHead): + if not gitBranchExists(remoteHead): if self.verbose: print "creating %s" % remoteHead update = True -- 2.11.4.GIT