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

[PATCH 1/3] t0001: remove duplicate test

From
Patrick Steinhardt <ps@pks.im>
Date
Jan 30, 2025, 16:24 UTC
Message-ID
<20250130-b4-pks-reinit-default-ref-format-v1-1-d2769ca01207@pks.im>
In-Reply-To
<20250130-b4-pks-reinit-default-ref-format-v1-0-d2769ca01207@pks.im>

The test in question is an exact copy of the testcase preceding it. Remove it.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
---
 t/t0001-init.sh | 9 ---------
 1 file changed, 9 deletions(-)
diff --git a/t/t0001-init.sh b/t/t0001-init.sh
index 72a0c2e7d4..213d5984b1 100755
--- a/t/t0001-init.sh
+++ b/t/t0001-init.sh
@@ -861,15 +861,6 @@ test_expect_success 're-init with includeIf.onbranch condition' '
 	test_cmp expect actual
 '
 
-test_expect_success 're-init with includeIf.onbranch condition' '
-	test_when_finished "rm -rf repo" &&
-	git init repo &&
-	git -c includeIf.onbranch:nonexistent.path=/does/not/exist init repo &&
-	echo $GIT_DEFAULT_REF_FORMAT >expect &&
-	git -C repo rev-parse --show-ref-format >actual &&
-	test_cmp expect actual
-'
-
 test_expect_success 're-init skips non-matching includeIf.onbranch' '
 	test_when_finished "rm -rf repo config" &&
 	cat >config <<-EOF &&
-- 
2.48.1.468.gbf5f394be8.dirty
Previous: Patrick SteinhardtNext: Patrick Steinhardt
Message 2 of 11 in “setup: fix reinit of repos with different formats”
  1. 0/3 setup: fix reinit of repos with different formatsPatrick Steinhardt, Jan 30, 2025
  2. 1/3 t0001: remove duplicate testPatrick Steinhardt, Jan 30, 2025
  3. 3/3 setup: fix reinit of repos with incompatible GIT_DEFAULT_HASHPatrick Steinhardt, Jan 30, 2025
  4. Junio C HamanoJan 31, 2025
  5. 2/3 setup: fix reinit of repos with incompatible GIT_DEFAULT_REF_FORMATPatrick Steinhardt, Jan 30, 2025
  6. Junio C HamanoJan 30, 2025
  7. Junio C HamanoJan 31, 2025
  8. Patrick SteinhardtFeb 3, 2025
  9. Junio C HamanoFeb 3, 2025
  10. Patrick SteinhardtFeb 3, 2025
  11. brian m. carlsonJan 30, 2025

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.