Re: [PATCH] Do check_repository_format() early
From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-06-15 22:43:56
On Dec 5, 2007 8:33 PM, Nguyen Thai Ngoc Duy [off-list ref] wrote:
quoted hunk ↗ jump to hunk
@@ -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