diff options
| author | Junio C Hamano <gitster@pobox.com> | 2019-07-25 14:27:12 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-07-25 14:27:12 -0700 |
| commit | 9db52cf44b63230ab5f1459b5109a437230c9a66 (patch) | |
| tree | 6a1221a23acf54b5b9de1422091863e9bc362680 /builtin | |
| parent | Merge branch 'pb/request-pull-verify-remote-ref' into maint (diff) | |
| parent | clone: respect user supplied origin name when setting up partial clone (diff) | |
| download | git-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.c | 2 |
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); |
