Code

Don't dereference NULL upon lookup failure.
[git.git] / 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) {