From: Jay Soffian <jaysoffian@gmail.com>
To: Matthieu Moy <Matthieu.Moy@imag.fr>
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [PATCH 2/2] push: better error messages for detached HEAD and "no destination"
Date: Mon, 28 Feb 2011 17:48:04 -0500 [thread overview]
Message-ID: <AANLkTim7O4O2UUWzZOrZOWN1zp2iruLYf3+3WMFTi8_5@mail.gmail.com> (raw)
In-Reply-To: <1298927645-2716-3-git-send-email-Matthieu.Moy@imag.fr>
On Mon, Feb 28, 2011 at 4:14 PM, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
> ---
> builtin/push.c | 12 ++++++++++--
> 1 files changed, 10 insertions(+), 2 deletions(-)
>
> @@ -152,7 +153,14 @@ static int do_push(const char *repo, int flags)
> if (!remote) {
> if (repo)
> die("bad repository '%s'", repo);
> - die("No destination configured to push to.");
> + die("No destination configured to push to.\n"
The dangling preposition is awkward. How about:
No configured push destination.
Or
Push destination not configured.
> + "Either specify the URL from the command line or configure a remote repository using\n"
Maybe "Either specify the URL explicitly or configure..."
> + "\n"
> + " git remote add <name> <url>\n"
> + "\n"
> + "and then push using the remote name like\n"
s/like//
> + "\n"
> + " git push <name>\n");
Well, I just bikeshedded that 3 different colors, didn't I? You're welcome. :-)
j.
next prev parent reply other threads:[~2011-02-28 22:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-28 21:14 [PATCH 0/2] push: better error messages Matthieu Moy
2011-02-28 21:14 ` [PATCH 1/2] push: better error message when push.default = tracking Matthieu Moy
2011-02-28 21:14 ` [PATCH 2/2] push: better error messages for detached HEAD and "no destination" Matthieu Moy
2011-02-28 22:48 ` Jay Soffian [this message]
2011-02-28 23:00 ` Matthieu Moy
2011-02-28 23:29 ` Junio C Hamano
2011-03-01 9:11 ` [PATCH 1/2 v2] push: better error messages when push.default = tracking Matthieu Moy
2011-03-01 9:11 ` [PATCH 2/2 v2] push: better error message when no remote configured Matthieu Moy
2011-03-01 18:34 ` [PATCH 1/2 v2] push: better error messages when push.default = tracking Junio C Hamano
2011-03-02 20:12 ` [PATCH 1/2 v3] " Matthieu Moy
2011-03-02 20:12 ` [PATCH 2/2 v3] push: better error message when no remote configured Matthieu Moy
2011-03-03 1:43 ` [PATCH 1/2 v3] push: better error messages when push.default = tracking Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTim7O4O2UUWzZOrZOWN1zp2iruLYf3+3WMFTi8_5@mail.gmail.com \
--to=jaysoffian@gmail.com \
--cc=Matthieu.Moy@imag.fr \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).