commit - 17d4bf8dd5ea178b0a6fab42c97b0b297351e2ee
commit + eb4f3ad3e4ca2f06e2b92793d80b627965593f82
blob - 044dc9e08c5a819bd26600218c57e38dfee83d84
blob + 81e2a19eda1a789f27f996797c0ca05c94ba29fa
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
struct got_tag_object *tag = NULL;
int cmp;
- name = got_ref_get_name(re->ref);
- if (strcmp(name, GOT_REF_HEAD) == 0)
+ if (got_ref_is_symbolic(re->ref))
continue;
+
+ name = got_ref_get_name(re->ref);
if (strncmp(name, "refs/", 5) == 0)
name += 5;
if (strncmp(name, "got/", 4) == 0)
SIMPLEQ_FOREACH(re, &refs, entry) {
char *refname;
+ if (got_ref_is_symbolic(re->ref))
+ continue;
+
refname = strdup(got_ref_get_name(re->ref));
if (refname == NULL) {
error = got_error_from_errno("got_ref_to_str");