diff options
author | Christian Couder <christian.couder@gmail.com> | 2019-06-25 16:40:38 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-06-26 00:05:38 +0300 |
commit | 60b7a92d846a6cc542f96fa0045735cc0b9265fd (patch) | |
tree | 04461bfe8a3e2339b25a717d8bdfd3204f43956a /setup.c | |
parent | db27dca5cfe41ffa62f3a34cff2f7fafb2547307 (diff) |
Move repository_format_partial_clone to promisor-remote.c
Now that we have has_promisor_remote() and can use many
promisor remotes, let's hide repository_format_partial_clone
as a static in promisor-remote.c to avoid it being use
for anything other than managing backward compatibility.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,6 +4,7 @@ #include "dir.h" #include "string-list.h" #include "chdir-notify.h" +#include "promisor-remote.h" static int inside_git_dir = -1; static int inside_work_tree = -1; @@ -478,7 +479,7 @@ static int check_repository_format_gently(const char *gitdir, struct repository_ } repository_format_precious_objects = candidate->precious_objects; - repository_format_partial_clone = xstrdup_or_null(candidate->partial_clone); + set_repository_format_partial_clone(candidate->partial_clone); repository_format_worktree_config = candidate->worktree_config; string_list_clear(&candidate->unknown_extensions, 0); |