Thread (19 messages) 19 messages, 4 authors, 2021-04-01

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

flat view

From: Johannes Schindelin <hidden>
Date: 2021-02-04 14:03:40

Hi,

in addition to what Junio said:

On Thu, 4 Feb 2021, Li Linchao via GitGitGadget wrote:
quoted hunk ↗ jump to hunk
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`.

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help