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

[PATCH] Don't use GIT_CONFIG in t5505-remote

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Feb 26, 2008, 22:15 UTC
Message-ID
<alpine.LNX.1.00.0802261713520.19665@iabervon.org>

For some reason, t5505-remote was setting GIT_CONFIG to .git/config and exporting it. The sole effect of this was to cause the tests to fail if "git clone" obeyed it (which it presumably should).

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
---
Maybe test-lib used to set GIT_CONFIG to something that would interfere? 
Or the default behavior was wrong?
 t/t5505-remote.sh |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh
index 636aec2..4fc62f5 100755
--- a/t/t5505-remote.sh
+++ b/t/t5505-remote.sh
@@ -4,9 +4,6 @@ test_description='git remote porcelain-ish'
 
 . ./test-lib.sh
 
-GIT_CONFIG=.git/config
-export GIT_CONFIG
-
 setup_repository () {
 	mkdir "$1" && (
 	cd "$1" &&
-- 
1.5.4.3.328.gcaed
Next: Jeff King
Message 1 of 4 in “Don't use GIT_CONFIG in t5505-remote”
  1. Don't use GIT_CONFIG in t5505-remoteDaniel Barkalow, Feb 26, 2008
  2. Jeff KingFeb 26, 2008
  3. Junio C HamanoFeb 27, 2008
  4. Junio C HamanoFeb 27, 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.