summaryrefslogtreecommitdiff
path: root/contrib/remote-helpers/git-remote-hg
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-04-18 11:17:40 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-04-18 11:17:40 -0700
commit8f87d548b6c1fad5f13886f2b1a5acba2764f3b3 (patch)
tree68e62ba17b8520bb1c1c03270ec80f148f74e250 /contrib/remote-helpers/git-remote-hg
parentMerge branch 'fc/complete-aliased-push' (diff)
parentremote-bzr: trivial test fix (diff)
downloadtgif-8f87d548b6c1fad5f13886f2b1a5acba2764f3b3.tar.xz
Merge branch 'fc/remote-helper-fixes'
* fc/remote-helper-fixes: remote-bzr: trivial test fix remote-bzr: include authors field in pushed commits remote-bzr: add support for older versions remote-hg: always normalize paths remote-helpers: allow all tests running from any dir
Diffstat (limited to 'contrib/remote-helpers/git-remote-hg')
-rwxr-xr-xcontrib/remote-helpers/git-remote-hg1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg
index 36b526106b..34cda02759 100755
--- a/contrib/remote-helpers/git-remote-hg
+++ b/contrib/remote-helpers/git-remote-hg
@@ -260,6 +260,7 @@ class Parser:
return (user, int(date), -tz)
def fix_file_path(path):
+ path = os.path.normpath(path)
if not os.path.isabs(path):
return path
return os.path.relpath(path, '/')