Browse Source

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>
maint
Andrew Clausen 18 years ago committed by Shawn O. Pearce
parent
commit
7e23b06d59
  1. 3
      send-pack.c

3
send-pack.c

@ -204,7 +204,8 @@ static int send_pack(int in, int out, struct remote *remote, int nr_refspec, cha @@ -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;
}


Loading…
Cancel
Save