summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2019-06-25 13:40:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-06-25 21:05:38 (GMT)
commit60b7a92d846a6cc542f96fa0045735cc0b9265fd (patch)
tree04461bfe8a3e2339b25a717d8bdfd3204f43956a /setup.c
parentdb27dca5cfe41ffa62f3a34cff2f7fafb2547307 (diff)
downloadgit-60b7a92d846a6cc542f96fa0045735cc0b9265fd.zip
git-60b7a92d846a6cc542f96fa0045735cc0b9265fd.tar.gz
git-60b7a92d846a6cc542f96fa0045735cc0b9265fd.tar.bz2
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index 8dcb463..25a3038 100644
--- a/setup.c
+++ b/setup.c
@@ -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);