diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-09-13 15:27:42 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-09-13 15:27:42 -0700 |
| commit | 0299251319669eba8c343f56c4bd5393148674da (patch) | |
| tree | c72f279c4e181a7f5703292acb89a3e6bea161a6 /t/t9210-scalar.sh | |
| parent | 57974d46a4d5a079471c4f7eaa5933b1922299e4 (diff) | |
| parent | ce31b82ca95ba13aba424a1e3d09a292637f6f1d (diff) | |
| download | git-0299251319669eba8c343f56c4bd5393148674da.tar.gz | |
Merge branch 'ds/scalar-no-tags'
The "scalar clone" command learned the "--no-tags" option.
* ds/scalar-no-tags:
scalar: add --no-tags option to 'scalar clone'
Diffstat (limited to 't/t9210-scalar.sh')
| -rwxr-xr-x | t/t9210-scalar.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/t9210-scalar.sh b/t/t9210-scalar.sh index a41b4fcc08..e8613990e1 100755 --- a/t/t9210-scalar.sh +++ b/t/t9210-scalar.sh @@ -169,6 +169,24 @@ test_expect_success 'scalar clone' ' ) ' +test_expect_success 'scalar clone --no-... opts' ' + # Note: redirect stderr always to avoid having a verbose test + # run result in a difference in the --[no-]progress option. + GIT_TRACE2_EVENT="$(pwd)/no-opt-trace" scalar clone \ + --no-tags --no-src \ + "file://$(pwd)" no-opts --single-branch 2>/dev/null && + + test_subcommand git fetch --quiet --no-progress \ + origin --no-tags <no-opt-trace && + ( + cd no-opts && + + test_cmp_config --no-tags remote.origin.tagopt && + git for-each-ref --format="%(refname)" refs/tags/ >tags && + test_line_count = 0 tags + ) +' + test_expect_success 'scalar reconfigure' ' git init one/src && scalar register one && |
