summaryrefslogtreecommitdiff
path: root/send-pack.c
diff options
context:
space:
mode:
authorAndrew Clausen <clausen@econ.upenn.edu>2007-10-16 17:16:05 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-10-16 22:01:15 -0400
commit7e23b06d5972ebf6377380b2dba97aeea9b7c02d (patch)
treed969b67a1983495cbec9826b58f7ec0b13ca950d /send-pack.c
parentdd5c8af176bb935a0b01a7dc2d5e022565c3aac3 (diff)
downloadgit-7e23b06d5972ebf6377380b2dba97aeea9b7c02d.tar.gz
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>
Diffstat (limited to 'send-pack.c')
-rw-r--r--send-pack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/send-pack.c b/send-pack.c
index 9fc8a812f4..fd985ed28d 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;
}