commit 4343a07f8a7ed7d12a233c873a417b38b555e200 from: Stefan Sperling date: Fri Apr 24 16:33:32 2020 UTC filter out "remote/*/HEAD" references in 'got log' output commit - 79cc719fb21cd573f0b669dddf501e3fa5b389fe commit + 4343a07f8a7ed7d12a233c873a417b38b555e200 blob - cce99fd025fb8106b5f21bfa90675c46ba374f06 blob + 7bf94578ea43d411c5be1b07496fbc6ab378c4c1 --- got/got.c +++ got/got.c @@ -3047,8 +3047,12 @@ print_commit(struct got_commit_object *commit, struct 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) {