commit - cd154312d1af8f1612bb73c728a1394608539da3
commit + 37de562ead5a95ca95e8779e7a8e218876166ff7
blob - da9cdaf407efe99157bcb838eb9d52d7b9de8ae9
blob + 8185109b334df44388594704fe45a9e7de47bbf4
--- libexec/got-fetch-pack/got-fetch-pack.c
+++ libexec/got-fetch-pack/got-fetch-pack.c
goto done;
nref++;
found_branch = 1;
- } else if (chattygot) {
+ } else if (chattygot && (default_branch == NULL ||
+ strcmp(default_branch, refname) != 0)) {
fprintf(stderr, "%s: ignoring %s\n",
getprogname(), refname);
}