From 946f6cc4a6cf557a66fe40f58ac85d89164867ef Mon Sep 17 00:00:00 2001 From: Chris Darroch Date: Tue, 20 Jul 2021 23:43:42 -0400 Subject: [PATCH] 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. --- t/t-batch-transfer.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/t/t-batch-transfer.sh b/t/t-batch-transfer.sh index 930bfb0a..9a71b822 100755 --- a/t/t-batch-transfer.sh +++ b/t/t-batch-transfer.sh @@ -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