summaryrefslogtreecommitdiffstats
path: root/send-pack.c
diff options
context:
space:
mode:
authorAndrew Clausen <clausen@econ.upenn.edu>2007-10-16 23:16:05 +0200
committerShawn O. Pearce <spearce@spearce.org>2007-10-17 04:01:15 +0200
commit7e23b06d5972ebf6377380b2dba97aeea9b7c02d (patch)
treed969b67a1983495cbec9826b58f7ec0b13ca950d /send-pack.c
parentFix setup_git_directory_gently() with relative GIT_DIR & GIT_WORK_TREE (diff)
downloadgit-7e23b06d5972ebf6377380b2dba97aeea9b7c02d.tar.xz
git-7e23b06d5972ebf6377380b2dba97aeea9b7c02d.zip
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;
}