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

[PATCH 4/4] setup_git_directory(): check repository format version.

From
Junio C Hamano <junkio@cox.net>
Date
Nov 26, 2005, 01:15 UTC
Message-ID
<7v1x14gqfw.fsf@assigned-by-dhcp.cox.net>

After figuring out the GIT_DIR location, make sure the repository is of the right vintage, by calling check_repository_format(). .

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 setup.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

applies-to: 780a67370b48b5230c31092b613533a109eb57f8 f30efdb616487d90c037c6d0c4088e151b960016

diff --git a/setup.c b/setup.c
index 0e2e3c8..cc44a72 100644
--- a/setup.c
+++ b/setup.c
@@ -173,5 +173,6 @@ int check_repository_format(void)
 const char *setup_git_directory(void)
 {
 	const char *retval = setup_git_directory_1();
+	check_repository_format();
 	return retval;
 }
---
0.99.9.GIT
Message 1 of 1 in “setup_git_directory(): check repository format version.”
  1. 4/4 setup_git_directory(): check repository format version.Junio C Hamano, Nov 26, 2005

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.