X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-push.c;h=ca36fb1e5834fc581bc7bf8ed54184bbecdc2389;hb=c3067cbfb3fbab32177d5f61ea73127f08ab43cb;hp=122fdcfbdc13a11388a091e5ec33d077648fab0a;hpb=687004b512d30daeff0e64dc718f803433d73329;p=git.git diff --git a/builtin-push.c b/builtin-push.c index 122fdcfbd..ca36fb1e5 100644 --- a/builtin-push.c +++ b/builtin-push.c @@ -53,8 +53,11 @@ static int do_push(const char *repo, int flags) int i, errs; struct remote *remote = remote_get(repo); - if (!remote) - die("bad repository '%s'", repo); + if (!remote) { + if (repo) + die("bad repository '%s'", repo); + die("No destination configured to push to."); + } if (remote->mirror) flags |= (TRANSPORT_PUSH_MIRROR|TRANSPORT_PUSH_FORCE);