prevent tog segfault upon unexpected object type in ref list view
commit3e6e13b22e6744ac9ba40feadac972d441b7e6c5
authorStefan Sperling <stsp@stsp.name>
Fri, 27 Sep 2024 13:52:45 +0000 (27 13:52 +0000)
committerThomas Adam <thomas@xteddy.org>
Tue, 1 Oct 2024 23:00:28 +0000 (2 00:00 +0100)
tree0d0e7fdf748608a21aaf0f0613725cc171b40832
parent856eeb981b56bc60553350302b84c28a7dceadf7
prevent tog segfault upon unexpected object type in ref list view

If an unexpected object type is found while resolving a reference
in the ref view, have tog exit with an "unknown object type" error
instead of crashing.

Found while playing with a repo which contains tags that tag tags.
tog/tog.c