commit 685ec32287c6ee788f650fcbd05238094324907ca684d2f8bf8bf45d8e0dc2d3 from: Stefan Sperling date: Fri Feb 20 14:01:41 2026 UTC use a non-default branch name for dangling HEAD in the cleanup_no_head test suggested by op@ commit - 9a1ea1d6e6dffd7c10000689a43ff7c285e4e023d4801696a8850490df68eb5b commit + 685ec32287c6ee788f650fcbd05238094324907ca684d2f8bf8bf45d8e0dc2d3 blob - d3fc5ec766d39fe6b4d5f6e876d1055f87eac3b3a92accacd919f51d7203a276 blob + e4202ff0c58b9d7b5e68979f91f5c1c766c3972c35e106976ebb7acce825278e --- regress/cmdline/cleanup.sh +++ regress/cmdline/cleanup.sh @@ -699,12 +699,12 @@ test_cleanup_no_head_branch() { local commit_id=`git_show_head $testroot/repo` # create a dangling HEAD reference - echo 'ref: refs/heads/main' > $testroot/repo/.git/HEAD + echo 'ref: refs/heads/foo' > $testroot/repo/.git/HEAD # list references got ref -r $testroot/repo -l > $testroot/stdout cat > $testroot/stdout.expected <