Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTay Ray Chuan <rctay89@gmail.com>2010-01-08 05:12:45 +0300
committerJunio C Hamano <gitster@pobox.com>2010-01-10 10:34:11 +0300
commitc1ceea1d273925fe6ecb0824e7ea08eb6e6e2635 (patch)
tree8a15642013e59266de733774e8da2afdda54db98 /transport-helper.c
parent08d63a422ba7293119865e6cbbc3a34619be32f7 (diff)
transport-helper.c::push_refs(): emit "no refs" error message
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>
Diffstat (limited to 'transport-helper.c')
-rw-r--r--transport-helper.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/transport-helper.c b/transport-helper.c
index 71a1e50ee7..8c0b575f32 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -321,8 +321,11 @@ static int push_refs(struct transport *transport,
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)