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

Re: Git 1.1.6.g4d44 make test FAILURE report

From
Junio C Hamano <junkio@cox.net>
Date
Feb 11, 2006, 04:14 UTC
Message-ID
<7v1wyasfam.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<43ED5F60.1010408@gmail.com>
A Large Angry SCM <gitzilla@gmail.com> writes:
> It also breaks a lot of commands not related to making commits;
> git-fetch for one.

git-sh-setup one is easy to fix. We could say something equally silly like this instead:

diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index 1e638e4..157c7e4 100755
--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
@@ -41,7 +41,11 @@ then
 	: ${GIT_OBJECT_DIRECTORY="$GIT_DIR/objects"}
 
 	# Make sure we are in a valid repository of a vintage we understand.
-	GIT_DIR="$GIT_DIR" git-var GIT_AUTHOR_IDENT >/dev/null || exit
+	GIT_DIR="$GIT_DIR" git repo-config --get core.nosuch >/dev/null
+	if test $? == 128
+	then
+	    exit
+	fi
 else
 	GIT_DIR=$(git-rev-parse --git-dir) || exit
 fi

The only thing that code cares about is to use a relatively
cheap command to examine "$GIT_DIR/config" to make sure that the
respository format version recorded in the file is of old enough
vintage we understand; the command to cause .git/config to be
read does not have to be git-var.

So after nixing that one, the remaining users all look like they
do want something reasonable from the user anyway, so for them
git-var that fails when the user has not fixed the unusable
gecos is a desirable thing.

	git grep -n git-var '*.sh'

shows:

git-am, git-applypatch, git-format-patch::
	use it to add sign-off by the user.

git-commit, git-tag::
	use it to record the user identity.

git-pull::
	this uses git-var-l which is unfortunate.  We should
	be able to use git-repo-config instead.  Patches
	welcome.
Previous: A Large Angry SCMNext: Junio C Hamano
Message 6 of 10 in “Git 1.1.6.g4d44 make test FAILURE report”
  1. A Large Angry SCMFeb 10, 2006
  2. Junio C HamanoFeb 10, 2006
  3. A Large Angry SCMFeb 11, 2006
  4. Junio C HamanoFeb 11, 2006
  5. A Large Angry SCMFeb 11, 2006
  6. Junio C HamanoFeb 11, 2006
  7. Junio C HamanoFeb 11, 2006
  8. Teach repo-config the -l and --get-regexp optionsJohannes Schindelin, Feb 11, 2006
  9. Junio C HamanoFeb 12, 2006
  10. Add support for explicit type specifiers when calling git-repo-configPetr Baudis, Feb 12, 2006

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.