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
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user