summaryrefslogtreecommitdiff
path: root/t/t7700-repack.sh
diff options
context:
space:
mode:
authorLibravatar Denton Liu <liu.denton@gmail.com>2019-11-27 11:53:45 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-11-29 13:20:15 -0800
commit09279086e8c92c77cc75f73dcac35062e6e68fd3 (patch)
treeaed6c6b92094b02c831fa0b4ebda6e5349bc3c7f /t/t7700-repack.sh
parentt7501: stop losing return codes of git commands (diff)
downloadtgif-09279086e8c92c77cc75f73dcac35062e6e68fd3.tar.xz
t7700: drop redirections to /dev/null
Since output is silenced when running without `-v` and debugging output is useful with `-v`, remove redirections to /dev/null as it is not useful. In one case where the output of stdout is consumed, redirect the output of test_commit to stderr. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7700-repack.sh')
-rwxr-xr-xt/t7700-repack.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t7700-repack.sh b/t/t7700-repack.sh
index 4e855bc21b..e1a689d6a9 100755
--- a/t/t7700-repack.sh
+++ b/t/t7700-repack.sh
@@ -5,7 +5,7 @@ test_description='git repack works correctly'
. ./test-lib.sh
commit_and_pack() {
- test_commit "$@" >/dev/null &&
+ test_commit "$@" 1>&2 &&
SHA1=$(git pack-objects --all --unpacked --incremental .git/objects/pack/pack </dev/null) &&
echo pack-${SHA1}.pack
}
@@ -19,7 +19,7 @@ test_expect_success 'objects in packs marked .keep are not repacked' '
# Create two packs
# The first pack will contain all of the objects except one
git rev-list --objects --all | grep -v file2 |
- git pack-objects pack > /dev/null &&
+ git pack-objects pack &&
# The second pack will contain the excluded object
packsha1=$(git rev-list --objects --all | grep file2 |
git pack-objects pack) &&
@@ -235,7 +235,7 @@ test_expect_success 'incremental repack does not complain' '
test_expect_success 'bitmaps can be disabled on bare repos' '
git -c repack.writeBitmaps=false -C bare.git repack -ad &&
- bitmap=$(ls bare.git/objects/pack/*.bitmap 2>/dev/null || :) &&
+ bitmap=$(ls bare.git/objects/pack/*.bitmap || :) &&
test -z "$bitmap"
'