Code

git fetch-pack: do not complain about "no common commits" in an empty repo
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Wed, 2 Jul 2008 17:06:56 +0000 (18:06 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Jul 2008 22:53:43 +0000 (15:53 -0700)
commitebcce310f2018b26a21b2926490209f5550620fe
tree421dff1240d01ee51fbedf58979cdeaab00a3aef
parent013942f637e2e0706b5a44e58a9d285bc57c5305
git fetch-pack: do not complain about "no common commits" in an empty repo

If the repo is empty, it is obvious that there are no common commits
when fetching from _anywhere_.

So there is no use in saying it in that case, and it can even be
annoying.  Therefore suppress the message unilaterally if the repository
is empty prior to the fetch.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch-pack.c