git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[StGit PATCH v2 1/4] Add rebase test for when upstream has deleted a non-ASCII file

From
Karl Hasselström <kha@treskal.com>
Date
Jun 3, 2008, 00:41 UTC
Message-ID
<20080603004139.25028.33202.stgit@yoghurt>
In-Reply-To
<20080603003846.25028.49353.stgit@yoghurt>

Test that stg rebase can handle upstream deleting a file with a non-ASCII name. It currently can't.

Bug spotted by Jakub Narebski <jnareb@gmail.com>.
Signed-off-by: Karl Hasselström <kha@treskal.com>
---
 t/t3200-non-ascii-filenames.sh |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
 create mode 100755 t/t3200-non-ascii-filenames.sh
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
Previous: Karl HasselströmNext: Karl Hasselström
Message 13 of 18 in “[StGIT BUG] StGIT errors out on rebasing patch deleting file with Unicode filename”
  1. Jakub NarebskiJun 1, 2008
  2. Jakub NarebskiJun 2, 2008
  3. Catalin MarinasJun 2, 2008
  4. Jakub NarebskiJun 2, 2008
  5. Catalin MarinasJun 2, 2008
  6. Add rebase test for when upstream has deleted a non-ASCII fileKarl Hasselström, Jun 2, 2008
  7. 0/4 Handle non-ASCII filenamesKarl Hasselström, Jun 2, 2008
  8. 1/4 Add rebase test for when upstream has deleted a non-ASCII fileKarl Hasselström, Jun 2, 2008
  9. 2/4 Handle changed files with non-ASCII namesKarl Hasselström, Jun 2, 2008
  10. 3/4 Test for another filename quoting issue in tree_status()Karl Hasselström, Jun 2, 2008
  11. 4/4 Handle refresh of changed files with non-ASCII namesKarl Hasselström, Jun 2, 2008
  12. 0/4 Handle non-ASCII filenamesKarl Hasselström, Jun 3, 2008
  13. 1/4 Add rebase test for when upstream has deleted a non-ASCII fileKarl Hasselström, Jun 3, 2008
  14. 2/4 Handle changed files with non-ASCII namesKarl Hasselström, Jun 3, 2008
  15. 3/4 Test for another filename quoting issue in tree_status()Karl Hasselström, Jun 3, 2008
  16. 4/4 Handle refresh of changed files with non-ASCII namesKarl Hasselström, Jun 3, 2008
  17. Catalin MarinasJun 3, 2008
  18. Karl HasselströmJun 3, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.