commit abdd569e31cd50e202d93eb3900ce5b227869718 from: Stefan Sperling date: Wed Sep 23 11:41:52 2020 UTC skip remote HEAD refs in gotweb's gw_get_commit(); matches got and tog commit - 3721d310ec458110a050477d968ed8f6820f1a62 commit + abdd569e31cd50e202d93eb3900ce5b227869718 blob - 9a08db8aed0d4266f9e5198c97b7c7241760f1a3 blob + e0c4b29b1bbf16ca75bef799ffca5591edb2048a --- gotweb/gotweb.c +++ gotweb/gotweb.c @@ -3525,8 +3525,12 @@ gw_get_commit(struct gw_trans *gw_trans, struct gw_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; + } error = got_ref_resolve(&ref_id, gw_trans->repo, re->ref); if (error) return error;