3 . "$(dirname "$0")/testlib.sh"
5 begin_test "transfer queue rejects unknown OIDs"
9 reponame="unknown-oids"
10 setup_remote_repo "$reponame"
11 clone_repo "$reponame" "$reponame"
14 git add .gitattributes
15 git commit -m "initial commit"
17 contents="unknown-oid"
18 printf "$contents" > a.dat
21 git commit -m "add objects"
24 git push origin master 2>&1 | tee push.log
25 res="${PIPESTATUS[0]}"
28 refute_server_object "$reponame" "$(calc_oid "$contents")"
29 if [ "0" -eq "$res" ]; then
30 echo "push successful?"
34 grep "\[unknown-oid\] The server returned an unknown OID." push.log