From: Karl Hasselström Date: Mon, 2 Jun 2008 23:40:45 +0000 (+0200) Subject: Add rebase test for when upstream has deleted a non-ASCII file X-Git-Tag: v0.14.3~4 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/82863c3c5b26c743d1c0c288d354dd78557a914c Add rebase test for when upstream has deleted a non-ASCII file Test that stg rebase can handle upstream deleting a file with a non-ASCII name. It currently can't. Bug spotted by Jakub Narebski . Signed-off-by: Karl Hasselström --- diff --git a/t/t3200-non-ascii-filenames.sh b/t/t3200-non-ascii-filenames.sh new file mode 100755 index 0000000..1d82a9f --- /dev/null +++ b/t/t3200-non-ascii-filenames.sh @@ -0,0 +1,27 @@ +#!/bin/sh +test_description='Handle files with non-ASCII characters in their names' + +. ./test-lib.sh + +test_expect_success 'Setup' ' + echo "Fjäderholmarna" > skärgÃ¥rdsö.txt && + git add skärgÃ¥rdsö.txt && + git commit -m "Create island" && + stg init && + echo foo > unrelated.txt && + git add unrelated.txt && + stg new -m "Unrelated file" && + stg refresh && + stg pop && + rm skärgÃ¥rdsö.txt && + git commit -a -m "Remove island" && + git tag upstream && + git reset --hard HEAD^ && + stg push +' + +test_expect_failure 'Rebase onto changed non-ASCII file' ' + stg rebase upstream +' + +test_done