mirror of
https://github.com/git/git
synced 2024-10-30 14:03:28 +00:00
Merge branch 'jc/sparse-checkout-set-default-fix' into maint-2.43
"git sparse-checkout set" added default patterns even when the patterns are being fed from the standard input, which has been corrected. * jc/sparse-checkout-set-default-fix: sparse-checkout: use default patterns for 'set' only !stdin
This commit is contained in:
commit
8566311a03
1 changed files with 1 additions and 1 deletions
|
@ -835,7 +835,7 @@ static int sparse_checkout_set(int argc, const char **argv, const char *prefix)
|
||||||
* non-cone mode, if nothing is specified, manually select just the
|
* non-cone mode, if nothing is specified, manually select just the
|
||||||
* top-level directory (much as 'init' would do).
|
* top-level directory (much as 'init' would do).
|
||||||
*/
|
*/
|
||||||
if (!core_sparse_checkout_cone && argc == 0) {
|
if (!core_sparse_checkout_cone && !set_opts.use_stdin && argc == 0) {
|
||||||
argv = default_patterns;
|
argv = default_patterns;
|
||||||
argc = default_patterns_nr;
|
argc = default_patterns_nr;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue