Commit Diff


commit - 34cd2d9587b79912669c8bb19b54ab7a7b0b4828
commit + 878a31bf1574c38a578839c1c43b14cf39c72910
blob - 4ae6fbc520b21e761719a82232e309e8e3747239
blob + 5d8a926f7df0fee86e5814f974307bfc7ab17039
--- regress/gotd/repo_write.sh
+++ regress/gotd/repo_write.sh
@@ -354,7 +354,6 @@ test_delete_branch() {
 	got fetch -q -r $testroot/repo-clone -l >$testroot/refs
 	cat <<EOF >$testroot/refs.expected
 HEAD: refs/heads/main
-HEAD: $main_id
 refs/heads/foo: $foo_id
 refs/heads/main: $main_id
 refs/heads/newbranch: $nb_id
@@ -378,7 +377,6 @@ EOF
 	got fetch -q -r $testroot/repo-clone -l >$testroot/refs
 	cat <<EOF >$testroot/refs.expected
 HEAD: refs/heads/main
-HEAD: $main_id
 refs/heads/main: $main_id
 refs/heads/newbranch: $nb_id
 refs/heads/newbranch2: $nb2_id
@@ -414,7 +412,6 @@ EOF
 	got fetch -q -r $testroot/repo-clone -l >$testroot/refs
 	cat <<EOF >$testroot/refs.expected
 HEAD: refs/heads/main
-HEAD: $main_id
 refs/heads/main: $main_id
 refs/tags/1.0: $tag_id
 EOF
@@ -455,7 +452,6 @@ EOF
 	got fetch -q -r $testroot/repo-clone -l >$testroot/refs
 	cat <<EOF >$testroot/refs.expected
 HEAD: refs/heads/main
-HEAD: $main_id
 refs/heads/main: $main_id
 refs/tags/1.0: $tag_id
 EOF
@@ -540,7 +536,6 @@ test_rewind_branch() {
 	got fetch -q -r $testroot/repo-clone -l >$testroot/refs
 	cat <<EOF >$testroot/refs.expected
 HEAD: refs/heads/main
-HEAD: $main_id
 refs/heads/foo: $main_id
 refs/heads/main: $main_id
 refs/tags/1.0: $tag_id