Skip to content

Commit

Permalink
t5537: adjust test_oid label
Browse files Browse the repository at this point in the history
We recently switched to using Perl instead of `sed` in the httpd-based
tests. Let's reflect that in the label we give the corresponding commit
hashes.

Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
dscho authored and gitster committed Mar 5, 2020
1 parent e63cefb commit 0d65f3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/t5537-fetch-shallow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ test_expect_success 'setup' '
commit 4 &&
git config --global transfer.fsckObjects true &&
test_oid_cache <<-EOF
sed sha1:s/0034shallow %s/0036unshallow %s/
sed sha256:s/004cshallow %s/004eunshallow %s/
perl sha1:s/0034shallow %s/0036unshallow %s/
perl sha256:s/004cshallow %s/004eunshallow %s/
EOF
'

Expand Down Expand Up @@ -243,7 +243,7 @@ test_expect_success 'shallow fetches check connectivity before writing shallow f
# with an empty packfile. This is done by refetching with a shorter
# depth (to ensure that the packfile is empty), and overwriting the
# shallow line in the response with the unshallow line we want.
printf "$(test_oid sed)" \
printf "$(test_oid perl)" \
"$(git -C "$REPO" rev-parse HEAD)" \
"$(git -C "$REPO" rev-parse HEAD^)" \
>"$HTTPD_ROOT_PATH/one-time-perl" &&
Expand Down

0 comments on commit 0d65f3f

Please sign in to comment.