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

[PATCH 1/2] test-lib.sh: Test for presence of git-init in the right path.

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Mar 13, 2009, 15:45 UTC
Message-ID
<1236959116-3334-2-git-send-email-git@drmicha.warpmail.net>
In-Reply-To
<1236959116-3334-1-git-send-email-git@drmicha.warpmail.net>

It just happens so that when GIT_EXEC_PATH points to a compiled checkout of git.git it contains "git". Since this is not true in general make test-lib check for "git-init" which is always in GIT_EXEC_PATH.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
---
 t/test-lib.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 7a847ec..b9da86e 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -454,7 +454,7 @@ test_create_repo () {
 	repo="$1"
 	mkdir -p "$repo"
 	cd "$repo" || error "Cannot setup test environment"
-	"$GIT_EXEC_PATH/git" init "--template=$owd/../templates/blt/" >&3 2>&4 ||
+	"$GIT_EXEC_PATH/git-init" "--template=$owd/../templates/blt/" >&3 2>&4 ||
 	error "cannot run git init -- have you built things yet?"
 	mv .git/hooks .git/hooks-disabled
 	cd "$owd"
-- 
1.6.2.149.g6462
Previous: Michael J GruberNext: Michael J Gruber
Message 2 of 7 in “Allow running the test suite against installed git”
  1. 0/2 Allow running the test suite against installed gitMichael J Gruber, Mar 13, 2009
  2. 1/2 test-lib.sh: Test for presence of git-init in the right path.Michael J Gruber, Mar 13, 2009
  3. 2/2 test-lib.sh: Allow running the test suite against installed gitMichael J Gruber, Mar 13, 2009
  4. Junio C HamanoMar 14, 2009
  5. 0/2 Allow running the test suite against installed gitMichael J Gruber, Mar 16, 2009
  6. 1/2 test-lib.sh: Test for presence of git-init in the right path.Michael J Gruber, Mar 16, 2009
  7. 2/2 test-lib.sh: Allow running the test suite against installed gitMichael J Gruber, Mar 16, 2009

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.