diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-04-17 10:28:19 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-17 10:28:19 -0700 |
| commit | c81538ea6cf4612a6ec2128c2bdb94abdbda8b97 (patch) | |
| tree | 1112613c3e1557060631be6ae7cbfc9b7f7f555d /t | |
| parent | 4a3d816dd2d36cee3fec058f08c3a48815680b87 (diff) | |
| parent | f1fb0644650a3c2ca5f957e29c626924c870b6cc (diff) | |
Merge branch 'ps/refname-avail-check-optim'
Incorrect sorting of refs with bytes with high-bit set on platforms
with signed char led to a BUG, which has been corrected.
* ps/refname-avail-check-optim:
refs/packed: fix BUG when seeking refs with UTF-8 characters
Diffstat (limited to 't')
| -rwxr-xr-x | t/t1408-packed-refs.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/t1408-packed-refs.sh b/t/t1408-packed-refs.sh index 41ba1f1d7f..833477f0fa 100755 --- a/t/t1408-packed-refs.sh +++ b/t/t1408-packed-refs.sh @@ -42,4 +42,19 @@ test_expect_success 'no error from stale entry in packed-refs' ' test_cmp expect actual ' +test_expect_success 'list packed refs with unicode characters' ' + test_when_finished "rm -rf repo" && + git init repo && + ( + cd repo && + test_commit --no-tag A && + git update-ref refs/heads/ HEAD && + git update-ref refs/heads/z HEAD && + git pack-refs --all && + printf "%s commit\trefs/heads/z\n" $(git rev-parse HEAD) >expect && + git for-each-ref refs/heads/z >actual && + test_cmp expect actual + ) +' + test_done |
