summaryrefslogtreecommitdiff
path: root/t/t1450-fsck.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2015-06-22 15:25:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-23 21:27:35 (GMT)
commit71ab8fa840fcca4b4f80acba6a529e3cbc174b65 (patch)
tree1d55b99408581d28068c89433e6b72f4b7a57fda /t/t1450-fsck.sh
parent5d477a334a68698709f07ebda4999c10997ef6f7 (diff)
downloadgit-71ab8fa840fcca4b4f80acba6a529e3cbc174b65.zip
git-71ab8fa840fcca4b4f80acba6a529e3cbc174b65.tar.gz
git-71ab8fa840fcca4b4f80acba6a529e3cbc174b65.tar.bz2
fsck: report the ID of the error/warning
Some repositories written by legacy code have objects with non-fatal fsck issues. To allow the user to ignore those issues, let's print out the ID (e.g. when encountering "missingEmail", the user might want to call `git config --add receive.fsck.missingEmail=warn`). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1450-fsck.sh')
-rwxr-xr-xt/t1450-fsck.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh
index cfb32b6..7c5b3d5 100755
--- a/t/t1450-fsck.sh
+++ b/t/t1450-fsck.sh
@@ -231,8 +231,8 @@ test_expect_success 'tag with incorrect tag name & missing tagger' '
git fsck --tags 2>out &&
cat >expect <<-EOF &&
- warning in tag $tag: invalid '\''tag'\'' name: wrong name format
- warning in tag $tag: invalid format - expected '\''tagger'\'' line
+ warning in tag $tag: badTagName: invalid '\''tag'\'' name: wrong name format
+ warning in tag $tag: missingTaggerEntry: invalid format - expected '\''tagger'\'' line
EOF
test_cmp expect out
'