summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 08d63a4)
raw | patch | inline | side by side (parent: 08d63a4)
author | Tay Ray Chuan <rctay89@gmail.com> | |
Fri, 8 Jan 2010 02:12:45 +0000 (10:12 +0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 10 Jan 2010 07:34:11 +0000 (23:34 -0800) |
Emit an error message when remote_refs is not set.
This behaviour is consistent with that of builtin-send-pack.c and
http-push.c.
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This behaviour is consistent with that of builtin-send-pack.c and
http-push.c.
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport-helper.c | patch | blob | history |
diff --git a/transport-helper.c b/transport-helper.c
index 71a1e50ee712dfeedd0928afc22fbc0e6f855d73..8c0b575f322c56c701448adc7acc976575e1ad98 100644 (file)
--- a/transport-helper.c
+++ b/transport-helper.c
struct child_process *helper;
struct ref *ref;
- if (!remote_refs)
+ if (!remote_refs) {
+ fprintf(stderr, "No refs in common and none specified; doing nothing.\n"
+ "Perhaps you should specify a branch such as 'master'.\n");
return 0;
+ }
helper = get_helper(transport);
if (!data->push)