Commit Diff


commit - f21ec2f0a8aced9bb068d3faa18b7b5c483fe345
commit + 4515a796e0b1abe895f186e1ce09e6c53fa4856b
blob - 123004c4d0700fee5e741fc9839cdcefe67d560b
blob + 20248ce5f5a852d3af86a44dfe33d196fa12e9e3
--- 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) {