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

1 messages from 2005-11-26 to 2005-11-26. Participants: Junio C Hamano.
Thread: https://gitlist.dev/t/2678

## Junio C Hamano, 2005-11-26 01:15

Subject: [PATCH 4/4] setup_git_directory(): check repository format version.
Message-ID: <7v1x14gqfw.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v1x14gqfw.fsf%40assigned-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

```
