Commit 88189dd
gitk: fix error when remote tracking branch is deleted
When a remote tracking branch is deleted (e.g., via 'git push --delete
origin branch'), the headids array entry for that branch is removed, but
upstreamofref may still reference it. This causes gitk to show an error
and prevents the Tags and Heads view from opening.
Fix by checking that headids($upstreamofref($n)) exists before accessing
it in the refill_reflist function.
Signed-off-by: Michael Rappazzo <rappazzo@gmail.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>1 parent 9965cc7 commit 88189dd
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10332 | 10332 | | |
10333 | 10333 | | |
10334 | 10334 | | |
10335 | | - | |
| 10335 | + | |
| 10336 | + | |
| 10337 | + | |
10336 | 10338 | | |
10337 | 10339 | | |
10338 | 10340 | | |
| |||
0 commit comments