Merge branch 'mr/sort-refs-by-type'

* mr/sort-refs-by-type:
  gitk: fix error when remote tracking branch is deleted
main^2
Johannes Sixt 2025-10-04 15:36:12 +02:00
commit d7cedce063
1 changed files with 3 additions and 1 deletions

4
gitk
View File

@ -10294,7 +10294,9 @@ proc refill_reflist {} {
if {![string match "remotes/*" $n] && [string match $reflistfilter $n]} {
if {[commitinview $headids($n) $curview]} {
lappend localrefs [list $n H]
if {[info exists upstreamofref($n)] && [commitinview $headids($upstreamofref($n)) $curview]} {
if {[info exists upstreamofref($n)] && \
[info exists headids($upstreamofref($n))] && \
[commitinview $headids($upstreamofref($n)) $curview]} {
lappend trackedremoterefs [list $upstreamofref($n) R]
}
} else {