From: Junio C Hamano Date: Sat, 26 Nov 2005 00:08:48 +0000 (-0800) Subject: setup_git_directory(): check repository format version. X-Git-Tag: v0.99.9l^2~53 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=22752e4c43e1bc864eaf1c2c015031a2b5e98a3b;p=git.git setup_git_directory(): check repository format version. 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 --- diff --git a/setup.c b/setup.c index 0e2e3c8c..cc44a724 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; }