diff options
| author | Mark Levedahl <mlevedahl@gmail.com> | 2026-05-31 19:02:14 -0400 |
|---|---|---|
| committer | Johannes Sixt <j6t@kdbg.org> | 2026-06-01 09:44:45 +0200 |
| commit | 89858b2f3c9f4ddbbb22962dff9e739f91d9c388 (patch) | |
| tree | 5f4e899ff7c637f425d6293cb5ddf64f360d06f9 /t/t4013/diff.diff_initial..side | |
| parent | bb52cdac6254c006e06bf0bb820268dcf024fc22 (diff) | |
git-gui: use HEAD as current branch when detached
commit f87a36b697 ("git-gui: use git-branch --show-current", 2024-02-12)
changed git-gui to use git-branch to access refs, rather than directly
reading files as doing the latter is not compatible with the reftable
backend. git branch --show-current reports an empty branch name when the
head is detached, and in this case load_current_branch needs to report
HEAD using special case logic as it did prior to the above commit. Make
it do so.
This addresses an issue with git-gui browser failing with a detached
head.
Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
