diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-08-29 23:51:44 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-08-29 23:51:44 +0300 |
commit | 19cb1fc37b1fbbf4a8c616fec333ecd77366468f (patch) | |
tree | f30fe8049e11ebadb3833db58fb84c90a2d8f481 /t | |
parent | a59dbae0b3bdacfc7ebad40f784f38d6333e8608 (diff) | |
parent | f9a547d3a7a70db491f191dbc4f16c17e3308f78 (diff) |
Merge branch 'ds/scalar-updates'
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 |