summaryrefslogtreecommitdiff
path: root/git-p4.py
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2013-01-27 03:11:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-01-27 06:00:38 (GMT)
commit4f9273d27b399c9b6e0be372e607b9a8176c0699 (patch)
tree54f453203cfb937fedf453a3fc606bb4f2bc64f6 /git-p4.py
parent50a6b54c03219ad74b9f3f839e0321be18daeaf6 (diff)
downloadgit-4f9273d27b399c9b6e0be372e607b9a8176c0699.zip
git-4f9273d27b399c9b6e0be372e607b9a8176c0699.tar.gz
git-4f9273d27b399c9b6e0be372e607b9a8176c0699.tar.bz2
git p4: temp branch name should use / even on windows
Commit fed2369 (git-p4: Search for parent commit on branch creation, 2012-01-25) uses temporary branches to help find the parent of a new p4 branch. The temp branches are of the form "git-p4-tmp/%d" for some p4 change number. Mistakenly, this string was made using os.path.join() instead of just string concatenation. On windows, this turns into a backslash (\), which is not allowed in git branch names. Reported-by: Casey McGinty <casey.mcginty@gmail.com> Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-p4.py')
-rwxr-xr-xgit-p4.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-p4.py b/git-p4.py
index 2da5649..fb77c56 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -2687,7 +2687,7 @@ class P4Sync(Command, P4UserMap):
blob = None
if len(parent) > 0:
- tempBranch = os.path.join(self.tempBranchLocation, "%d" % (change))
+ tempBranch = "%s/%d" % (self.tempBranchLocation, change)
if self.verbose:
print "Creating temporary branch: " + tempBranch
self.commit(description, filesForCommit, tempBranch)