Thread (11 messages) 11 messages, 2 authors, 2023-10-15
STALE990d

[PATCH 3/8] t7900: create commit so that branch is born

From: Kristoffer Haugsbakk <hidden>
Date: 2023-10-14 21:47:01
Subsystem: the rest · Maintainer: Linus Torvalds

`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 <redacted>
---
 t/t7900-maintenance.sh | 1 +
 1 file changed, 1 insertion(+)
diff --git a/t/t7900-maintenance.sh b/t/t7900-maintenance.sh
index ebc207f1a58..4bfb4ec5cf6 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
-- 
2.42.0.2.g879ad04204
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help