Commit Diff
--- libexec/got-fetch-pack/got-fetch-pack.c +++ libexec/got-fetch-pack/got-fetch-pack.c @@ -583,7 +583,8 @@ fetch_pack(int fd, int packfd, struct got_object_id *p "neither a branch nor a tag\n", getprogname(), refname); } - continue; + if (!list_refs_only) + continue; } if (refsz == nref + 1) {