Re: [PATCH] Do check_repository_format() early
On Dec 5, 2007 8:33 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
Show 9 quoted lines
> @@ -287,6 +310,8 @@ const char *setup_git_directory_gently(int *nongit_ok)
> if (!work_tree_env)
> inside_work_tree = 0;
> setenv(GIT_DIR_ENVIRONMENT, ".", 1);
> + if (check_repository_format_gently(nongit_ok))
> + return NULL;
> return NULL;
> }
> chdir("..");This part better be as follow (patch may be damaged as I'm editing it in gmail)
@@ -287,6 +310,8 @@ const char *setup_git_directory_gently(int *nongit_ok)
if (!work_tree_env)
inside_work_tree = 0;
setenv(GIT_DIR_ENVIRONMENT, ".", 1);
+ check_repository_format_gently(nongit_ok);
return NULL;
}
chdir("..");--
Duy