Code

Remove repo version check from setup_git_directory
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 9 Dec 2007 10:14:39 +0000 (17:14 +0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 9 Dec 2007 10:24:51 +0000 (02:24 -0800)
setup_git_directory_gently has done the check already.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c

diff --git a/setup.c b/setup.c
index e96a316452197ed4b224f0c6839f036a01082bc2..b59dbe7f51e8ffcbf2721d2ec7201400830e6830 100644 (file)
--- a/setup.c
+++ b/setup.c
@@ -388,7 +388,6 @@ int check_repository_format(void)
 const char *setup_git_directory(void)
 {
        const char *retval = setup_git_directory_gently(NULL);
-       check_repository_format();
 
        /* If the work tree is not the default one, recompute prefix */
        if (inside_work_tree < 0) {