commit ca9125dc05031cee6e9e3dc8d5d5fc95139605c0 from: Stefan Sperling date: Wed Nov 29 12:22:15 2023 UTC adjust expected output to make 2 failing gotd regression tests pass The repo_write process still announces HEAD twice, once with its symref target and once with the resolved symref object hash. I cannot recall if this is deliberate but let's accept it for now to avoid test failures being flagged due to this issue, which is mostly cosmetic. commit - f2d60da0a91a0e26b79a01dac0d0019069306805 commit + ca9125dc05031cee6e9e3dc8d5d5fc95139605c0 blob - 5d8a926f7df0fee86e5814f974307bfc7ab17039 blob + 4ae6fbc520b21e761719a82232e309e8e3747239 --- regress/gotd/repo_write.sh +++ regress/gotd/repo_write.sh @@ -354,6 +354,7 @@ test_delete_branch() { got fetch -q -r $testroot/repo-clone -l >$testroot/refs cat <$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 @@ -377,6 +378,7 @@ EOF got fetch -q -r $testroot/repo-clone -l >$testroot/refs cat <$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 @@ -412,6 +414,7 @@ EOF got fetch -q -r $testroot/repo-clone -l >$testroot/refs cat <$testroot/refs.expected HEAD: refs/heads/main +HEAD: $main_id refs/heads/main: $main_id refs/tags/1.0: $tag_id EOF @@ -452,6 +455,7 @@ EOF got fetch -q -r $testroot/repo-clone -l >$testroot/refs cat <$testroot/refs.expected HEAD: refs/heads/main +HEAD: $main_id refs/heads/main: $main_id refs/tags/1.0: $tag_id EOF @@ -536,6 +540,7 @@ test_rewind_branch() { got fetch -q -r $testroot/repo-clone -l >$testroot/refs cat <$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