mirror of
https://github.com/git/git.git
synced 2026-01-10 18:20:27 +00: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:
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 {
|
||||
|
||||
Reference in New Issue
Block a user