summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-06-17 10:15:20 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-06-17 10:15:20 -0700
commit14f49b2058e6757b09eae362e5061e74dcfc666e (patch)
tree515a15ff56248bb1f9ee74aee1507c8b6c1b4bfb /builtin
parentMerge branch 'pb/request-pull-verify-remote-ref' (diff)
parentclone: respect user supplied origin name when setting up partial clone (diff)
downloadtgif-14f49b2058e6757b09eae362e5061e74dcfc666e.tar.xz
Merge branch 'xl/record-partial-clone-origin'
When creating a partial clone, the object filtering criteria is recorded for the origin of the clone, but this incorrectly used a hardcoded name "origin" to name that remote; it has been corrected to honor the "--origin <name>" option. * xl/record-partial-clone-origin: clone: respect user supplied origin name when setting up partial clone
Diffstat (limited to 'builtin')
-rw-r--r--builtin/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index bb864d2101..5b9ebe9947 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -1227,7 +1227,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
remote_head_points_at, &branch_top);
if (filter_options.choice)
- partial_clone_register("origin", &filter_options);
+ partial_clone_register(option_origin, &filter_options);
if (is_local)
clone_local(path, git_dir);