Skip to content

Commit d7cedce

Browse files
committed
Merge branch 'mr/sort-refs-by-type'
* mr/sort-refs-by-type: gitk: fix error when remote tracking branch is deleted
2 parents ac8fec7 + 88189dd commit d7cedce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gitk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10294,7 +10294,9 @@ proc refill_reflist {} {
1029410294
if {![string match "remotes/*" $n] && [string match $reflistfilter $n]} {
1029510295
if {[commitinview $headids($n) $curview]} {
1029610296
lappend localrefs [list $n H]
10297-
if {[info exists upstreamofref($n)] && [commitinview $headids($upstreamofref($n)) $curview]} {
10297+
if {[info exists upstreamofref($n)] && \
10298+
[info exists headids($upstreamofref($n))] && \
10299+
[commitinview $headids($upstreamofref($n)) $curview]} {
1029810300
lappend trackedremoterefs [list $upstreamofref($n) R]
1029910301
}
1030010302
} else {

0 commit comments

Comments
 (0)