@matheusbsbs / matheus-bagliano / commits / 0d65f3fb1a
Fork 0

t5537: adjust test_oid label

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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Mar 4, 2020 at 15:53 UTC 0d65f3fb1a544fc40fdebfb6eb372dd87c1d297c
1 file changed +3 -3
t/t5537-fetch-shallow.sh
+3 -3
@@ -17,8 +17,8 @@ test_expect_success 'setup' '
17 commit 4 &&
18 git config --global transfer.fsckObjects true &&
19 test_oid_cache <<-EOF
20 - sed sha1:s/0034shallow %s/0036unshallow %s/
21 - sed sha256:s/004cshallow %s/004eunshallow %s/
20 + perl sha1:s/0034shallow %s/0036unshallow %s/
21 + perl sha256:s/004cshallow %s/004eunshallow %s/
22 EOF
23 '
24
@@ -243,7 +243,7 @@ test_expect_success 'shallow fetches check connectivity before writing shallow f
243 # with an empty packfile. This is done by refetching with a shorter
244 # depth (to ensure that the packfile is empty), and overwriting the
245 # shallow line in the response with the unshallow line we want.
246 - printf "$(test_oid sed)" \
246 + printf "$(test_oid perl)" \
247 "$(git -C "$REPO" rev-parse HEAD)" \
248 "$(git -C "$REPO" rev-parse HEAD^)" \
249 >"$HTTPD_ROOT_PATH/one-time-perl" &&