summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-06-17 17:15:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-06-17 17:15:20 (GMT)
commit14f49b2058e6757b09eae362e5061e74dcfc666e (patch)
tree515a15ff56248bb1f9ee74aee1507c8b6c1b4bfb /builtin
parentdedc04642184761be54d0a861174840918e5b606 (diff)
parent1c4a9f91142b2ca1b715e99b6e6da4016d422eb4 (diff)
downloadgit-14f49b2058e6757b09eae362e5061e74dcfc666e.zip
git-14f49b2058e6757b09eae362e5061e74dcfc666e.tar.gz
git-14f49b2058e6757b09eae362e5061e74dcfc666e.tar.bz2
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 bb864d2..5b9ebe9 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);