threads / patch / 2678

patch, 4 partssetup_git_directory(): check repository format version.

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

## tl;dr

One message between Nov 26, 2005 and Nov 26, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Junio C Hamano· Nov 26, 2005, 01:15 UTC · lore

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

Show changes to setup.c +1 −0
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

← back to recent threads