From f4f8acc91796060dbf680198201f9a82d8fe6c88 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 20 Oct 2022 08:43:10 +0000 Subject: another step towards git SHA-256 support While SHA-256 isn't supported for inboxes, yet xt/git-http-backend.t now runs properly against a SHA-256 code repository --- xt/git-http-backend.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xt') diff --git a/xt/git-http-backend.t b/xt/git-http-backend.t index adadebb0..1f3ba063 100644 --- a/xt/git-http-backend.t +++ b/xt/git-http-backend.t @@ -1,4 +1,4 @@ -# Copyright (C) 2016-2021 all contributors +# Copyright (C) all contributors # License: AGPL-3.0+ # # Ensure buffering behavior in -httpd doesn't cause runaway memory use @@ -53,7 +53,7 @@ SKIP: { } } skip "no packs found in $git_dir" unless defined $pack; - if ($pack !~ m!(/objects/pack/pack-[a-f0-9]{40}.pack)\z!) { + if ($pack !~ m!(/objects/pack/pack-[a-f0-9]{40,64}.pack)\z!) { skip "bad pack name: $pack"; } my $url = $1; -- cgit v1.2.3-24-ge0c7