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

[PATCH 3/4] subtree: fix a test failure under GETTEXT_POISON

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Apr 30, 2018, 09:50 UTC
Message-ID
<20180430095044.28492-4-avarab@gmail.com>
In-Reply-To
<20180430095044.28492-1-avarab@gmail.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 t/t7900-subtree.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/t/t7900-subtree.sh b/t/t7900-subtree.sh
index eb223ff049..a6e7103f92 100755
--- a/t/t7900-subtree.sh
+++ b/t/t7900-subtree.sh
@@ -38,6 +38,16 @@ check_equal()
 	fi
 }
 
+check_equal_i18n()
+{
+	if test_have_prereq C_LOCALE_OUTPUT
+	then
+		check_equal "$@"
+	else
+		return 0
+	fi
+}
+
 undo()
 {
 	git reset --hard HEAD~
@@ -250,7 +260,7 @@ test_expect_success 'merge the added subproj again, should do nothing' '
 		# this shouldn not actually do anything, since FETCH_HEAD
 		# is already a parent
 		result=$(git merge -s ours -m "merge -s -ours" FETCH_HEAD) &&
-		check_equal "${result}" "Already up to date."
+		check_equal_i18n "${result}" "Already up to date."
 	)
 '
 
-- 
2.17.0.290.gded63e768a
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 4 of 15 in “subtree: move out of contrib”
  1. 0/4 subtree: move out of contribÆvar Arnfjörð Bjarmason, Apr 30, 2018
  2. 2/4 subtree: remove support for git version <1.7Ævar Arnfjörð Bjarmason, Apr 30, 2018
  3. 1/4 git-subtree: move from contrib/subtree/Ævar Arnfjörð Bjarmason, Apr 30, 2018
  4. 3/4 subtree: fix a test failure under GETTEXT_POISONÆvar Arnfjörð Bjarmason, Apr 30, 2018
  5. 4/4 i18n: translate the git-subtree commandÆvar Arnfjörð Bjarmason, Apr 30, 2018
  6. Philip OakleyApr 30, 2018
  7. Avery PennarunApr 30, 2018
  8. Stefan BellerApr 30, 2018
  9. Avery PennarunApr 30, 2018
  10. Stefan BellerApr 30, 2018
  11. Ævar Arnfjörð BjarmasonApr 30, 2018
  12. Avery PennarunApr 30, 2018
  13. Duy NguyenMay 1, 2018
  14. Johannes SchindelinMay 1, 2018
  15. Ævar Arnfjörð BjarmasonMay 1, 2018

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.