mirror of
https://github.com/git/git.git
synced 2026-01-11 21:33:13 +09:00
Merge branch 'mr/sort-refs-by-type'
* mr/sort-refs-by-type: gitk: fix error when remote tracking branch is deleted
This commit is contained in:
commit
d7cedce063
4
gitk
4
gitk
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user