diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-11-02 10:53:14 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-11-02 10:53:15 +0300 |
commit | 50758312f2d29a32858ccd25b24ea64ae8a04cb1 (patch) | |
tree | d18aec2323a92bf729007f5914c8f7b84c2c64ba /t | |
parent | 396a167bd4e68f496981345c3d89459abb910b7e (diff) | |
parent | f9a547d3a7a70db491f191dbc4f16c17e3308f78 (diff) |
Merge branch 'ds/scalar-updates' into maint-2.42
Scalar updates.
* ds/scalar-updates:
scalar reconfigure: help users remove buggy repos
setup: add discover_git_directory_reason()
scalar: add --[no-]src option
Diffstat (limited to 't')
-rwxr-xr-x | t/t9211-scalar-clone.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t9211-scalar-clone.sh b/t/t9211-scalar-clone.sh index 872ad1c9c2..7869f45ee6 100755 --- a/t/t9211-scalar-clone.sh +++ b/t/t9211-scalar-clone.sh @@ -180,4 +180,16 @@ test_expect_success 'scalar clone warns when background maintenance fails' ' grep "could not turn on maintenance" err ' +test_expect_success '`scalar clone --no-src`' ' + scalar clone --src "file://$(pwd)/to-clone" with-src && + scalar clone --no-src "file://$(pwd)/to-clone" without-src && + + test_path_is_dir with-src/src && + test_path_is_missing without-src/src && + + (cd with-src/src && ls ?*) >with && + (cd without-src && ls ?*) >without && + test_cmp with without +' + test_done |