Thread (1 message) 1 message, 1 author, 2021-02-04

Re: [PATCH] builtin/clone.c: add --no-shallow option

From: Junio C Hamano <hidden>
Date: 2021-02-04 18:25:50

Johannes Schindelin [off-list ref] writes:
Hi,

in addition to what Junio said:

On Thu, 4 Feb 2021, Li Linchao via GitGitGadget wrote:
quoted
diff --git a/builtin/clone.c b/builtin/clone.c
index e335734b4cfd..b07d867e6641
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -858,6 +860,9 @@ static int git_clone_config(const char *k, const char *v, void *cb)
 		free(remote_name);
 		remote_name = xstrdup(v);
 	}
+	if (!strcmp(k, "clone.rejectshallow")) {
+		option_no_shallow = 1;
This needs to use `git_config_bool(k, v)` to allow for
`clone.rejectShallow = false`.
Thanks.  I completely missed that.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help