From: Karl Hasselström Date: Tue, 3 Jun 2008 00:26:10 +0000 (+0200) Subject: Test for another filename quoting issue in tree_status() X-Git-Tag: v0.14.3~2 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/adb61608fb1611570bbb53ddd0b7551e90e3fbdd?hp=fb9b3c0243657a2cf520e5bd5ccfe4aab94799c8 Test for another filename quoting issue in tree_status() stgit.git.tree_status() had another filename quoting issue, similar to the one just fixed. Test for that one too. Signed-off-by: Karl Hasselström --- diff --git a/t/t3200-non-ascii-filenames.sh b/t/t3200-non-ascii-filenames.sh index a04ead8..3146b8d 100755 --- a/t/t3200-non-ascii-filenames.sh +++ b/t/t3200-non-ascii-filenames.sh @@ -3,6 +3,12 @@ test_description='Handle files with non-ASCII characters in their names' . ./test-lib.sh +# Ignore our own output files. +cat > .git/info/exclude < skärgÃ¥rdsö.txt && git add skärgÃ¥rdsö.txt && @@ -10,7 +16,7 @@ test_expect_success 'Setup' ' stg init && echo foo > unrelated.txt && git add unrelated.txt && - stg new -m "Unrelated file" && + stg new p0 -m "Unrelated file" && stg refresh && stg pop && rm skärgÃ¥rdsö.txt && @@ -24,4 +30,30 @@ test_expect_success 'Rebase onto changed non-ASCII file' ' stg rebase upstream ' +test_expect_success 'Setup' ' + stg delete p0 && + git reset --hard HEAD^ && + echo "-- ett liv mitt ute i vattnet" >> skärgÃ¥rdsö.txt && + stg new p1 -m "Describe island" +' + +cat > expected.txt < output.txt && + diff -u expected.txt output.txt +' + +test_expect_success 'Refresh changes to non-ASCII file' ' + stg refresh +' + +cat > expected.txt < output.txt && + diff -u expected.txt output.txt +' + test_done