aboutsummaryrefslogtreecommitdiffstats
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-07-25 14:27:12 -0700
committerJunio C Hamano <gitster@pobox.com>2019-07-25 14:27:12 -0700
commit9db52cf44b63230ab5f1459b5109a437230c9a66 (patch)
tree6a1221a23acf54b5b9de1422091863e9bc362680 /builtin
parentMerge branch 'pb/request-pull-verify-remote-ref' into maint (diff)
parentclone: respect user supplied origin name when setting up partial clone (diff)
downloadgit-9db52cf44b63230ab5f1459b5109a437230c9a66.tar.gz
git-9db52cf44b63230ab5f1459b5109a437230c9a66.zip
Merge branch 'xl/record-partial-clone-origin' into maint
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 85b0d3155d..356bae5ed7 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -1220,7 +1220,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);