diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-25 21:27:12 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-25 21:27:12 (GMT) |
commit | 9db52cf44b63230ab5f1459b5109a437230c9a66 (patch) | |
tree | 6a1221a23acf54b5b9de1422091863e9bc362680 /builtin | |
parent | 58f34846d5858908b365011d17f1c552b4ad7fad (diff) | |
parent | 1c4a9f91142b2ca1b715e99b6e6da4016d422eb4 (diff) | |
download | git-9db52cf44b63230ab5f1459b5109a437230c9a66.zip git-9db52cf44b63230ab5f1459b5109a437230c9a66.tar.gz git-9db52cf44b63230ab5f1459b5109a437230c9a66.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clone.c b/builtin/clone.c index 85b0d31..356bae5 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); |