chiark / gitweb /
Add rebase test for when upstream has deleted a non-ASCII file
[stgit] / t / t3200-non-ascii-filenames.sh
1 #!/bin/sh
2 test_description='Handle files with non-ASCII characters in their names'
3
4 . ./test-lib.sh
5
6 test_expect_success 'Setup' '
7     echo "Fjäderholmarna" > skärgårdsö.txt &&
8     git add skärgårdsö.txt &&
9     git commit -m "Create island" &&
10     stg init &&
11     echo foo > unrelated.txt &&
12     git add unrelated.txt &&
13     stg new -m "Unrelated file" &&
14     stg refresh &&
15     stg pop &&
16     rm skärgårdsö.txt &&
17     git commit -a -m "Remove island" &&
18     git tag upstream &&
19     git reset --hard HEAD^ &&
20     stg push
21 '
22
23 test_expect_failure 'Rebase onto changed non-ASCII file' '
24     stg rebase upstream
25 '
26
27 test_done