Skip to content

Commit 7e23b06

Browse files
Andrew Clausenspearce
authored andcommitted
helpful error message when send-pack finds no refs in common.
Signed-off-by: Andrew Clausen <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent dd5c8af commit 7e23b06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

send-pack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ static int send_pack(int in, int out, struct remote *remote, int nr_refspec, cha
204204
return -1;
205205

206206
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");
208209
return 0;
209210
}
210211

0 commit comments

Comments
 (0)