Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2022-11-09 01:15:09 +0300
committerTaylor Blau <me@ttaylorr.com>2022-11-09 01:15:09 +0300
commit3e9303dc8e7c5798b5b83f1c1dfccb875db06b29 (patch)
tree73c32c654dc74c341bee74388b199335511fad2a /t
parentec9a46af4f1320b933a3d43bd8e8f055d350819a (diff)
parent1e4ea950f7a83240e15f5e77369cf700b94e8759 (diff)
Merge branch 'rs/archive-filter-error-once'
"git archive" mistakenly complained twice about a missing executable, which has been corrected. * rs/archive-filter-error-once: archive-tar: report filter start error only once
Diffstat (limited to 't')
-rwxr-xr-xt/t5000-tar-tree.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index eaa0b22ece4..d4730481384 100755
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
@@ -342,6 +342,13 @@ test_expect_success 'only enabled filters are available remotely' '
test_cmp_bin remote.bar config.bar
'
+test_expect_success 'invalid filter is reported only once' '
+ test_must_fail git -c tar.invalid.command= archive --format=invalid \
+ HEAD >out 2>err &&
+ test_must_be_empty out &&
+ test_line_count = 1 err
+'
+
test_expect_success 'git archive --format=tgz' '
git archive --format=tgz HEAD >j.tgz
'