From: Carlo Marcelo Arenas Belón Date: Thu, 19 Jun 2025 13:08:07 GMT Subject: [PATCH] fixup! repack: exclude cruft pack(s) from the MIDX where possible Message-ID: <20250619130807.48057-1-carenas@gmail.com> In-Reply-To: <52a069ef48f5a573c58a369b69827a40c7712247.1748473890.git.me@ttaylorr.com> In a previous commit, `grep -o` was introduced as part of t7704. POSIX doesn't have that flag as defined and while it is a popular one is not available at least in the latest release of AIX. Use a sed equivalent that ought to be more portable. Signed-off-by: Carlo Marcelo Arenas Belón --- t/t7704-repack-cruft.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t7704-repack-cruft.sh b/t/t7704-repack-cruft.sh index 2b0a55f8fd..3df6b53cd3 100755 --- a/t/t7704-repack-cruft.sh +++ b/t/t7704-repack-cruft.sh @@ -795,7 +795,7 @@ test_expect_success 'repack --write-midx includes cruft when necessary' ' test_path_is_file $(ls $packdir/pack-*.mtimes) && ls $packdir/pack-*.idx | sort >packs.all && - grep -o "pack-.*\.idx$" packs.all >in && + sed -n "s/.*\(pack-.*\.idx\)$/\1/p" packs.all >in && git multi-pack-index write --stdin-packs --bitmap