summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-26 00:08:48 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-27 09:32:59 (GMT)
commit22752e4c43e1bc864eaf1c2c015031a2b5e98a3b (patch)
tree1dc0816b6c98ef90985d2761f1ab80739e4fbc7d
parent4f629539cd99fb9fc68dbdc56812f291565d0f87 (diff)
downloadgit-22752e4c43e1bc864eaf1c2c015031a2b5e98a3b.zip
git-22752e4c43e1bc864eaf1c2c015031a2b5e98a3b.tar.gz
git-22752e4c43e1bc864eaf1c2c015031a2b5e98a3b.tar.bz2
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 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;
}