aboutsummaryrefslogtreecommitdiffstats
path: root/t/t9210-scalar.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-09-13 15:27:42 -0700
committerJunio C Hamano <gitster@pobox.com>2024-09-13 15:27:42 -0700
commit0299251319669eba8c343f56c4bd5393148674da (patch)
treec72f279c4e181a7f5703292acb89a3e6bea161a6 /t/t9210-scalar.sh
parent57974d46a4d5a079471c4f7eaa5933b1922299e4 (diff)
parentce31b82ca95ba13aba424a1e3d09a292637f6f1d (diff)
downloadgit-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-xt/t9210-scalar.sh18
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 &&