Teach '--cached' option to check-attr
[gitweb.git] / t / t5302-pack-index.sh
index 76bcaca9889b701f1fe490421be977b5e5875f1d..f8fa92446cfc46309468b4ecf142b74b1a812985 100755 (executable)
@@ -226,9 +226,8 @@ test_expect_success \
      ( while read obj
        do git cat-file -p $obj >/dev/null || exit 1
        done <obj-list ) &&
-     err=$(test_must_fail git verify-pack \
-       ".git/objects/pack/pack-${pack1}.pack" 2>&1) &&
-     echo "$err" | grep "CRC mismatch"'
+     test_must_fail git verify-pack ".git/objects/pack/pack-${pack1}.pack"
+'
 
 test_expect_success 'running index-pack in the object store' '
     rm -f .git/objects/pack/* &&