filter out "remote/*/HEAD" references in tog log view
diff --git a/tog/tog.c b/tog/tog.c
index ce5000c..59e36d0 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -1173,8 +1173,12 @@ build_refs_str(char **refs_str, struct got_reflist_head *refs,
continue;
if (strncmp(name, "heads/", 6) == 0)
name += 6;
- if (strncmp(name, "remotes/", 8) == 0)
+ if (strncmp(name, "remotes/", 8) == 0) {
name += 8;
+ s = strstr(name, "/" GOT_REF_HEAD);
+ if (s != NULL && s[strlen(s)] == '\0')
+ continue;
+ }
if (strncmp(name, "tags/", 5) == 0) {
err = got_object_open_as_tag(&tag, repo, re->id);
if (err) {