summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-25 16:08:48 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-27 01:32:59 -0800
commit22752e4c43e1bc864eaf1c2c015031a2b5e98a3b (patch)
tree1dc0816b6c98ef90985d2761f1ab80739e4fbc7d /setup.c
parent4f629539cd99fb9fc68dbdc56812f291565d0f87 (diff)
downloadgit-22752e4c43e1bc864eaf1c2c015031a2b5e98a3b.tar.gz
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 <junkio@cox.net>
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup.c b/setup.c
index 0e2e3c8c3c..cc44a724bf 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;
}