2 test_description
='Handle files with non-ASCII characters in their names'
6 # Ignore our own output files.
7 cat > .git
/info
/exclude
<<EOF
12 test_expect_success
'Setup' '
13 echo "Fjäderholmarna" > skärgårdsö.txt &&
14 git add skärgårdsö.txt &&
15 git commit -m "Create island" &&
17 echo foo > unrelated.txt &&
18 git add unrelated.txt &&
19 stg new p0 -m "Unrelated file" &&
23 git commit -a -m "Remove island" &&
25 git reset --hard HEAD^ &&
29 test_expect_success
'Rebase onto changed non-ASCII file' '
33 test_expect_success
'Setup' '
35 git reset --hard HEAD^ &&
36 echo "-- ett liv mitt ute i vattnet" >> skärgårdsö.txt &&
37 stg new p1 -m "Describe island"
40 cat > expected.txt
<<EOF
43 test_expect_success
'Status of modified non-ASCII file' '
44 stg status > output.txt &&
45 diff -u expected.txt output.txt
48 test_expect_success
'Refresh changes to non-ASCII file' '
52 cat > expected.txt
<<EOF
54 test_expect_success
'Status after refresh' '
55 stg status > output.txt &&
56 diff -u expected.txt output.txt