]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/sparse-checkout.c
Merge branch 'jc/sparse-checkout-set-default-fix'
[thirdparty/git.git] / builtin / sparse-checkout.c
index 80227f3df173c06f24dad6f578b2a0670fdb2604..288a832c8da7aa2c5da4f57967ec9d0f2cea4ca4 100644 (file)
@@ -831,7 +831,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
         * 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;
                argc = default_patterns_nr;
        } else {