3 . "$(dirname "$0")/testlib.sh"
5 begin_test "ssh with proxy command in lfs.url"
9 reponame="batch-ssh-proxy"
10 setup_remote_repo "$reponame"
11 clone_repo "$reponame" "$reponame"
13 sshurl="${GITSERVER/http:\/\//ssh://-oProxyCommand=ssh-proxy-test/}/$reponame"
15 git config lfs.url "$sshurl"
18 oid="$(calc_oid "$contents")"
20 printf "$contents" > test.dat
21 git add .gitattributes test.dat
22 git commit -m "initial commit"
24 git push origin master 2>&1 | tee push.log
25 if [ "0" -eq "${PIPESTATUS[0]}" ]; then
26 echo >&2 "fatal: push succeeded"
30 grep "got 4 args" push.log
31 grep "lfs-ssh-echo -- -oProxyCommand" push.log