diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-12-19 10:58:27 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-12-19 10:58:27 -0800 |
| commit | 5f212684abb66c9604e745a2296af8c4bb99961c (patch) | |
| tree | 16d25571b9d3d66c5ccf49df359c7adb99a0124c /t/t5527-fetch-odd-refs.sh | |
| parent | Merge https://github.com/j6t/gitk (diff) | |
| parent | fetch set_head: handle mirrored bare repositories (diff) | |
| download | git-5f212684abb66c9604e745a2296af8c4bb99961c.tar.gz git-5f212684abb66c9604e745a2296af8c4bb99961c.zip | |
Merge branch 'bf/set-head-symref'
When "git fetch $remote" notices that refs/remotes/$remote/HEAD is
missing and discovers what branch the other side points with its
HEAD, refs/remotes/$remote/HEAD is updated to point to it.
* bf/set-head-symref:
fetch set_head: handle mirrored bare repositories
fetch: set remote/HEAD if it does not exist
refs: add create_only option to refs_update_symref_extended
refs: add TRANSACTION_CREATE_EXISTS error
remote set-head: better output for --auto
remote set-head: refactor for readability
refs: atomically record overwritten ref in update_symref
refs: standardize output of refs_read_symbolic_ref
t/t5505-remote: test failure of set-head
t/t5505-remote: set default branch to main
Diffstat (limited to 't/t5527-fetch-odd-refs.sh')
| -rwxr-xr-x | t/t5527-fetch-odd-refs.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t5527-fetch-odd-refs.sh b/t/t5527-fetch-odd-refs.sh index e2770e4541..0de8eb5b6f 100755 --- a/t/t5527-fetch-odd-refs.sh +++ b/t/t5527-fetch-odd-refs.sh @@ -51,7 +51,8 @@ test_expect_success LONG_REF 'fetch handles extremely long refname' ' long main EOF - git for-each-ref --format="%(subject)" refs/remotes/long >actual && + git for-each-ref --format="%(subject)" refs/remotes/long \ + --exclude=refs/remotes/long/HEAD >actual && test_cmp expect actual ' |
