From: Andrew Clausen Date: Tue, 16 Oct 2007 21:16:05 +0000 (-0400) Subject: helpful error message when send-pack finds no refs in common. X-Git-Tag: v1.5.3.5~42 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e23b06d5972ebf6377380b2dba97aeea9b7c02d;p=git.git helpful error message when send-pack finds no refs in common. Signed-off-by: Andrew Clausen Signed-off-by: Shawn O. Pearce --- diff --git a/send-pack.c b/send-pack.c index 9fc8a812f..fd985ed28 100644 --- a/send-pack.c +++ b/send-pack.c @@ -204,7 +204,8 @@ static int send_pack(int in, int out, struct remote *remote, int nr_refspec, cha return -1; if (!remote_refs) { - fprintf(stderr, "No refs in common and none specified; doing nothing.\n"); + fprintf(stderr, "No refs in common and none specified; doing nothing.\n" + "Perhaps you should specify a branch such as 'master'.\n"); return 0; }