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

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2019-08-17 19:24:23 +0300
committerJunio C Hamano <gitster@pobox.com>2019-08-19 20:49:00 +0300
commit71d41ff651a54028856c4224777ef405de48ae66 (patch)
tree4836fec19c0b4a9138fcccd95671fd7984fd29e3 /t/t5004-archive-corner-cases.sh
parent17e9ef00d29b349727e3c710869217a36ad08224 (diff)
archive-tar: turn length miscalculation warning into BUG
Now that we're confident our pax extended header calculation is correct, turn the criticality of the assertion up to the maximum, from warning right up to BUG. Simplify the test, as the stderr comparison step would not be reached in case the BUG message is triggered. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5004-archive-corner-cases.sh')
-rwxr-xr-xt/t5004-archive-corner-cases.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/t5004-archive-corner-cases.sh b/t/t5004-archive-corner-cases.sh
index 4966a74b4d..3e7b23cb32 100755
--- a/t/t5004-archive-corner-cases.sh
+++ b/t/t5004-archive-corner-cases.sh
@@ -220,8 +220,7 @@ build_tree() {
test_expect_success 'tar archive with long paths' '
blob=$(echo foo | git hash-object -w --stdin) &&
tree=$(build_tree $blob | git mktree) &&
- git archive -o long_paths.tar $tree 2>stderr &&
- test_must_be_empty stderr
+ git archive -o long_paths.tar $tree
'
test_done