setup_git_directory(): check repository format version.
authorJunio C Hamano <junkio@cox.net>
Sat, 26 Nov 2005 00:08:48 +0000 (16:08 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 27 Nov 2005 09:32:59 +0000 (01:32 -0800)
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

diff --git a/setup.c b/setup.c
index 0e2e3c8..cc44a72 100644 (file)
--- 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;
 }