From 9332d43ccc7d3fe8c1c55dcac5b890ae7d0dacef Mon Sep 17 00:00:00 2001 From: Kristoffer Haugsbakk Date: Sat, 14 Oct 2023 23:45:54 +0200 Subject: [PATCH] t7900: create commit so that branch is born `pack-refs task` cannot be run in isolation but does pass if `maintenance.auto config option` is run first. Create a commit so that `HEAD` does not point to an unborn branch. Signed-off-by: Kristoffer Haugsbakk Signed-off-by: Junio C Hamano --- t/t7900-maintenance.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/t/t7900-maintenance.sh b/t/t7900-maintenance.sh index ebc207f1a5..4bfb4ec5cf 100755 --- a/t/t7900-maintenance.sh +++ b/t/t7900-maintenance.sh @@ -388,6 +388,7 @@ test_expect_success 'maintenance.incremental-repack.auto (when config is unset)' ' test_expect_success 'pack-refs task' ' + test_commit message && for n in $(test_seq 1 5) do git branch -f to-pack/$n HEAD || return 1