commit 79cc719fb21cd573f0b669dddf501e3fa5b389fe from: Stefan Sperling date: Fri Apr 24 16:31:55 2020 UTC filter out "remote/*/HEAD" references in tog log view commit - 70551d57b9f537ed14de697c1d7c552d26c12e5a commit + 79cc719fb21cd573f0b669dddf501e3fa5b389fe blob - ce5000cade828d33276a18bd09827070e83f2322 blob + 59e36d0a3c8e1f763e1bb8cc6e6290a98b85ab53 --- tog/tog.c +++ tog/tog.c @@ -1173,8 +1173,12 @@ build_refs_str(char **refs_str, struct got_reflist_hea 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) {