@matheusbsbs / matheus-bagliano / commits / 7e23b06d59
Fork 0

helpful error message when send-pack finds no refs in common.

Signed-off-by: Andrew Clausen <clausen@econ.upenn.edu> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Andrew Clausen committed Oct 16, 2007 at 17:16 UTC 7e23b06d5972ebf6377380b2dba97aeea9b7c02d
1 file changed +2 -1
send-pack.c
+2 -1
@@ -204,7 +204,8 @@ static int send_pack(int in, int out, struct remote *remote, int nr_refspec, cha
204 return -1;
205
206 if (!remote_refs) {
207 - fprintf(stderr, "No refs in common and none specified; doing nothing.\n");
207 + fprintf(stderr, "No refs in common and none specified; doing nothing.\n"
208 + "Perhaps you should specify a branch such as 'master'.\n");
209 return 0;
210 }
211