vcs-svn: rename check_overflow arguments for clarity
[gitweb.git] / t / t1007-hash-object.sh
index dd32432d626e4f3d192c2bbe4824772025bb08b1..f83df8eb8b143086df00e163a30ad96e43404001 100755 (executable)
@@ -188,4 +188,17 @@ for args in "-w --stdin-paths" "--stdin-paths -w"; do
        pop_repo
 done
 
+test_expect_success 'corrupt tree' '
+       echo abc >malformed-tree &&
+       test_must_fail git hash-object -t tree malformed-tree
+'
+
+test_expect_success 'corrupt commit' '
+       test_must_fail git hash-object -t commit --stdin </dev/null
+'
+
+test_expect_success 'corrupt tag' '
+       test_must_fail git hash-object -t tag --stdin </dev/null
+'
+
 test_done