X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft1450-fsck.sh;h=22a80c8268b368963d58fd26fffde5cc8d084ee6;hb=04d30ce622517faa0c6bc34ac5626586b447e350;hp=49cae3ed524d70ae39114b35a95e7070f1a4e575;hpb=512c9169415823fca013ac835921a5321654f2de;p=git.git diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh index 49cae3ed5..22a80c826 100755 --- a/t/t1450-fsck.sh +++ b/t/t1450-fsck.sh @@ -57,6 +57,34 @@ test_expect_success 'branch pointing to non-commit' ' git update-ref -d refs/heads/invalid ' +new=nothing +test_expect_success 'email without @ is okay' ' + git cat-file commit HEAD >basis && + sed "s/@/AT/" basis >okay && + new=$(git hash-object -t commit -w --stdin out && + cat out && + ! grep "error in commit $new" out +' +git update-ref -d refs/heads/bogus +rm -f ".git/objects/$new" + +new=nothing +test_expect_success 'email with embedded > is not okay' ' + git cat-file commit HEAD >basis && + sed "s/@[a-z]/&>/" basis >bad-email && + new=$(git hash-object -t commit -w --stdin out && + cat out && + grep "error in commit $new" out +' +git update-ref -d refs/heads/bogus +rm -f ".git/objects/$new" + cat > invalid-tag <