summaryrefslogtreecommitdiff
path: root/contrib/remote-helpers/test-bzr.sh
diff options
context:
space:
mode:
authorLibravatar Felipe Contreras <felipe.contreras@gmail.com>2013-04-05 21:49:23 -0600
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-04-07 00:39:28 -0700
commit6ff8d4e7487c0f48e568b7fd95fa02515a426c1a (patch)
tree9ef7099be33378d91441508844ec108d36dc2b16 /contrib/remote-helpers/test-bzr.sh
parentremote-bzr: add utf-8 support for fetching (diff)
downloadtgif-6ff8d4e7487c0f48e568b7fd95fa02515a426c1a.tar.xz
remote-bzr: add utf-8 support for pushing
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/remote-helpers/test-bzr.sh')
-rwxr-xr-xcontrib/remote-helpers/test-bzr.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/remote-helpers/test-bzr.sh b/contrib/remote-helpers/test-bzr.sh
index 6eacf09a9b..4d71f711a6 100755
--- a/contrib/remote-helpers/test-bzr.sh
+++ b/contrib/remote-helpers/test-bzr.sh
@@ -204,4 +204,35 @@ test_expect_success 'fetch utf-8 filenames' '
test_cmp expected actual
'
+test_expect_success 'push utf-8 filenames' '
+ mkdir -p tmp && cd tmp &&
+ test_when_finished "cd .. && rm -rf tmp && LC_ALL=C" &&
+
+ export LC_ALL=en_US.UTF-8
+
+ (
+ bzr init bzrrepo &&
+ cd bzrrepo &&
+
+ echo one >> content &&
+ bzr add content &&
+ bzr commit -m one
+ ) &&
+
+ (
+ git clone "bzr::$PWD/bzrrepo" gitrepo &&
+ cd gitrepo &&
+
+ echo test >> "áéíóú" &&
+ git add "áéíóú" &&
+ git commit -m utf-8 &&
+
+ git push
+ ) &&
+
+ (cd bzrrepo && bzr ls > ../actual) &&
+ echo -e "content\náéíóú" > expected &&
+ test_cmp expected actual
+'
+
test_done