commit - 3721d310ec458110a050477d968ed8f6820f1a62
commit + abdd569e31cd50e202d93eb3900ce5b227869718
blob - 9a08db8aed0d4266f9e5198c97b7c7241760f1a3
blob + e0c4b29b1bbf16ca75bef799ffca5591edb2048a
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
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;