summaryrefslogtreecommitdiff
path: root/t/t1450-fsck.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-02-28 14:55:39 -0800
committerJunio C Hamano <gitster@pobox.com>2012-02-28 14:55:39 -0800
commitc6a13b2c86b71cb25011094ff2dee3d7769991a2 (patch)
tree79877bce418a0b108d847a1c49779194b97c5345 /t/t1450-fsck.sh
parentba998d33e22d6fce4445af5834dc227609672501 (diff)
downloadgit-c6a13b2c86b71cb25011094ff2dee3d7769991a2.tar.gz
fsck: --no-dangling omits "dangling object" informationcb/fsck-squelch-dangling
The default output from "fsck" is often overwhelmed by informational message on dangling objects, especially if you do not repack often, and a real error can easily be buried. Add "--no-dangling" option to omit them, and update the user manual to demonstrate its use. Based on a patch by Clemens Buchacher, but reverted the part to change the default to --no-dangling, which is unsuitable for the first patch. The usual three-step procedure to break the backward compatibility over time needs to happen on top of this, if we were to go in that direction. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1450-fsck.sh')
-rwxr-xr-xt/t1450-fsck.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh
index 5b8ebd8053..5b79c51b8c 100755
--- a/t/t1450-fsck.sh
+++ b/t/t1450-fsck.sh
@@ -27,12 +27,8 @@ test_expect_success 'loose objects borrowed from alternate are not missing' '
git init &&
echo ../../../.git/objects >.git/objects/info/alternates &&
test_commit C fileC one &&
- git fsck >../out 2>&1
+ git fsck --no-dangling >../actual 2>&1
) &&
- {
- grep -v dangling out >actual ||
- :
- } &&
test_cmp empty actual
'