X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/82863c3c5b26c743d1c0c288d354dd78557a914c..d0329a7785d86495fd02ca595d9cb94fc67cdf4d:/t/t3200-non-ascii-filenames.sh diff --git a/t/t3200-non-ascii-filenames.sh b/t/t3200-non-ascii-filenames.sh index 1d82a9f..1aa78ed 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 && @@ -20,8 +26,34 @@ test_expect_success 'Setup' ' stg push ' -test_expect_failure 'Rebase onto changed non-ASCII file' ' +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