From: Junio C Hamano Date: Mon, 19 Nov 2018 07:24:40 +0000 (+0900) Subject: Merge branch 'ds/push-squelch-ambig-warning' X-Git-Tag: v2.20.0-rc1~16 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/137399934da84ff8258c5ae8522006b5c1674eec Merge branch 'ds/push-squelch-ambig-warning' "git push" used to check ambiguities between object-names and refnames while processing the list of refs' old and new values, which was unnecessary (as it knew that it is feeding raw object names). This has been optimized out. * ds/push-squelch-ambig-warning: pack-objects: ignore ambiguous object warnings --- 137399934da84ff8258c5ae8522006b5c1674eec diff --cc builtin/pack-objects.c index 794714e4f8,f703e6df9b..d23e812861 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@@ -3084,10 -2988,10 +3084,11 @@@ static void get_object_list(int ac, con struct rev_info revs; char line[1000]; int flags = 0; + int save_warning; - init_revisions(&revs, NULL); + repo_init_revisions(the_repository, &revs, NULL); save_commit_buffer = 0; + revs.allow_exclude_promisor_objects_opt = 1; setup_revisions(ac, av, &revs, NULL); /* make sure shallows are read */