Message ID | ae671aa615ac93161ef2260faea0f5df28f5f029.1639454952.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | d35954160a2c00a741e41030ff8449a9ae958439 |
Headers | show |
Series | sparse-checkout: make set subsume init | expand |
diff --git a/builtin/clone.c b/builtin/clone.c index fb377b27657..5bed37f8b51 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -633,7 +633,7 @@ static int git_sparse_checkout_init(const char *repo) { struct strvec argv = STRVEC_INIT; int result = 0; - strvec_pushl(&argv, "-C", repo, "sparse-checkout", "init", NULL); + strvec_pushl(&argv, "-C", repo, "sparse-checkout", "set", NULL); /* * We must apply the setting in the current process