Skip to content

Commit

Permalink
helpful error message when send-pack finds no refs in common.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Clausen <clausen@econ.upenn.edu>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Andrew Clausen authored and Shawn O. Pearce committed Oct 17, 2007
1 parent dd5c8af commit 7e23b06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion send-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7e23b06

Please sign in to comment.