summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2005-11-25 16:08:48 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2005-11-27 01:32:59 -0800
commit22752e4c43e1bc864eaf1c2c015031a2b5e98a3b (patch)
tree1dc0816b6c98ef90985d2761f1ab80739e4fbc7d
parentinit-db: check template and repository format. (diff)
downloadtgif-22752e4c43e1bc864eaf1c2c015031a2b5e98a3b.tar.xz
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>
-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;
}