t/t-batch-transfer.sh: quote and tidy vars

We double-quote one instance of the $sshurl variable added
in commit 691de511613c1c0dbe6ec92dec649b978ce03cf5 of
PR #4446, since all other instances of the variable are
already quoted, and drop an unused "oid" variable added
in the same commit.

We also remove a "git lfs env" debugging statement left from
the original introduction of the "batch transfers with ssh
endpoint" test in commit c6feebf3dc896b0bac99dee70b06ae7302f250be
of PR #1825.
This commit is contained in:
Chris Darroch 2021-07-20 23:43:42 -04:00
parent 461af6e0a4
commit 946f6cc4a6

@ -111,7 +111,6 @@ begin_test "batch transfers with ssh endpoint (git-lfs-authenticate)"
sshurl="${GITSERVER/http:\/\//ssh://git@}/$reponame"
git config lfs.url "$sshurl"
git lfs env
contents="test"
git lfs track "*.dat"
@ -137,7 +136,6 @@ begin_test "batch transfers with ssh endpoint (git-lfs-transfer)"
git config lfs.url "$sshurl"
contents="test"
oid="$(calc_oid "$contents")"
git lfs track "*.dat"
printf "%s" "$contents" > test.dat
git add .gitattributes test.dat
@ -145,7 +143,7 @@ begin_test "batch transfers with ssh endpoint (git-lfs-transfer)"
git push origin main 2>&1
cd ..
GIT_TRACE=1 git clone $sshurl "$reponame-2" 2>&1 | tee trace.log
GIT_TRACE=1 git clone "$sshurl" "$reponame-2" 2>&1 | tee trace.log
grep "lfs-ssh-echo.*git-lfs-transfer .*$reponame.git download" trace.log
cd "$reponame-2"
git lfs fsck