Change since v1: * Rename --no-shallow to --reject-shallow * Enable to reject a non-local clone * Enable --[no-]reject-shallow from CLI override configuration. * Add more testcases. * Reword commit messages and relative documentation. Signed-off-by: lilinchao lilinchao@xxxxxxxxxx lilinchao (2): builtin/clone.c: add --no-shallow option builtin/clone.c: add --reject-shallow option Documentation/config/clone.txt | 4 ++++ Documentation/git-clone.txt | 20 ++++++++++++++++++- builtin/clone.c | 35 ++++++++++++++++++++++++++++++++- t/t5606-clone-options.sh | 36 ++++++++++++++++++++++++++++++++++ t/t5611-clone-config.sh | 32 ++++++++++++++++++++++++++++++ 5 files changed, 125 insertions(+), 2 deletions(-) base-commit: fb7fa4a1fd273f22efcafdd13c7f897814fd1eb9 Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-865%2FCactusinhand%2Fgit-clone-options-v2 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-865/Cactusinhand/git-clone-options-v2 Pull-Request: https://github.com/gitgitgadget/git/pull/865 Range-diff vs v1: 1: 594323684af0 = 1: 2f9602495eb5 builtin/clone.c: add --no-shallow option -: ------------ > 2: cfcfc3ec6b37 builtin/clone.c: add --reject-shallow option -- gitgitgadget