3 . "$(dirname "$0")/testlib.sh"
5 ensure_git_version_isnt $VERSION_LOWER "2.3.0"
7 begin_test "push: upload to bad dns"
11 reponame="$(basename "$0" ".sh")-bad-dns"
12 setup_remote_repo "$reponame"
13 clone_repo "$reponame" "$reponame"
16 printf "hi" > good.dat
17 git add .gitattributes good.dat
20 port="$(echo "http://127.0.0.1:63378" | cut -f 3 -d ":")"
21 git config lfs.url "http://git-lfs-bad-dns:$port"
24 GIT_TERMINAL_PROMPT=0 git push origin master 2>&1 | tee push.log
25 res="${PIPESTATUS[0]}"
28 refute_server_object "$reponame" "$(calc_oid "hi")"
29 if [ "$res" = "0" ]; then
32 echo "push successful?"