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>
This commit is contained in:
parent
4f629539cd
commit
22752e4c43
1
setup.c
1
setup.c
@ -173,5 +173,6 @@ int check_repository_format(void)
|
|||||||
const char *setup_git_directory(void)
|
const char *setup_git_directory(void)
|
||||||
{
|
{
|
||||||
const char *retval = setup_git_directory_1();
|
const char *retval = setup_git_directory_1();
|
||||||
|
check_repository_format();
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user