aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-02-16 14:45:12 -0800
committerJunio C Hamano <gitster@pobox.com>2017-02-16 14:45:12 -0800
commit5a98255dec1578cc6dc3f25e85d7ea96028687b7 (patch)
treecd518fc5ec8312d8b9a90f656e3936d38c47bf36 /t
parentd09b6927978d70ca53126e80d0dc8a070cc06635 (diff)
parenta8b05162e894b88aeb7d5064daba07e1a4f58463 (diff)
downloadgit-5a98255dec1578cc6dc3f25e85d7ea96028687b7.tar.gz
git-5a98255dec1578cc6dc3f25e85d7ea96028687b7.tar.xz
Merge branch 'ls/p4-path-encoding'
When "git p4" imports changelist that removes paths, it failed to convert pathnames when the p4 used encoding different from the one used on the Git side. This has been corrected. * ls/p4-path-encoding: git-p4: fix git-p4.pathEncoding for removed files
Diffstat (limited to 't')
-rwxr-xr-xt/t9822-git-p4-path-encoding.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t9822-git-p4-path-encoding.sh b/t/t9822-git-p4-path-encoding.sh
index 7b83e696a..c78477c19 100755
--- a/t/t9822-git-p4-path-encoding.sh
+++ b/t/t9822-git-p4-path-encoding.sh
@@ -51,6 +51,22 @@ test_expect_success 'Clone repo containing iso8859-1 encoded paths with git-p4.p
)
'
+test_expect_success 'Delete iso8859-1 encoded paths and clone' '
+ (
+ cd "$cli" &&
+ ISO8859="$(printf "$ISO8859_ESCAPED")" &&
+ p4 delete "$ISO8859" &&
+ p4 submit -d "remove file"
+ ) &&
+ git p4 clone --destination="$git" //depot@all &&
+ test_when_finished cleanup_git &&
+ (
+ cd "$git" &&
+ git -c core.quotepath=false ls-files >actual &&
+ test_must_be_empty actual
+ )
+'
+
test_expect_success 'kill p4d' '
kill_p4d
'