Thread (9 messages) 9 messages, 1 author, 2018-12-11
STALE2758d
Revisions (6)
  1. v1 current
  2. v2 [diff vs current]
  3. v3 [diff vs current]
  4. v4 [diff vs current]
  5. v5 [diff vs current]
  6. v6 [diff vs current]

[PATCH v1 5/8] promisor-remote: use repository_format_partial_clone

From: Christian Couder <hidden>
Date: 2018-12-11 05:28:16
Subsystem: the rest · Maintainer: Linus Torvalds

A remote specified using the extensions.partialClone config
option should be considered a promisor remote too.

Signed-off-by: Christian Couder <redacted>
---
 promisor-remote.c | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/promisor-remote.c b/promisor-remote.c
index ca2b8bf6bb..e4a0625426 100644
--- a/promisor-remote.c
+++ b/promisor-remote.c
@@ -73,6 +73,11 @@ static void promisor_remote_do_init(int force)
 	initialized = 1;
 
 	git_config(promisor_remote_config, NULL);
+
+	if (repository_format_partial_clone &&
+	    !do_find_promisor_remote(repository_format_partial_clone))
+		promisor_remote_new(repository_format_partial_clone,
+				    strlen(repository_format_partial_clone));
 }
 
 static inline void promisor_remote_init(void)
-- 
2.20.0.rc2.14.g1379de12fa.dirty
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help