Commit 6fa5c67c875cf510a1e15f6c6ceda66cbbc343ed

Stefan Sperling 2022-01-03T11:16:56

remove loose objects if running tests with GOT_TEST_PACK

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/regress/cmdline/common.sh b/regress/cmdline/common.sh
index bf70684..e549610 100644
--- a/regress/cmdline/common.sh
+++ b/regress/cmdline/common.sh
@@ -47,6 +47,7 @@ maybe_pack_repo()
 	local repo="$1"
 	if [ -n "$GOT_TEST_PACK" ]; then
 		(cd $repo && gotadmin pack -a > /dev/null)
+		(cd $repo && gotadmin cleanup -a -q)
 	fi
 }