From: Junio C Hamano <gitster@pobox.com>
To: Luc Heinrich <luc@honk-honk.com>
Cc: git@vger.kernel.org, spearce@spearce.org
Subject: Re: [PATCH] git-svn: call 'fatal' correctly in set-tree
Date: Sat, 11 Oct 2008 22:34:06 -0700 [thread overview]
Message-ID: <7v63nyidgx.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <1222696698-97356-1-git-send-email-luc@honk-honk.com> (Luc Heinrich's message of "Mon, 29 Sep 2008 15:58:18 +0200")
Luc Heinrich <luc@honk-honk.com> writes:
> When doing a set-tree and there is no revision to commit to, the
> following unrelated error message is displayed: "Undefined subroutine
> &Git::SVN::fatal called at /opt/local/libexec/git-core/git-svn line
> 2575." The following patch fixes the problem and allows the real error
> message to be shown.
>
> Signed-off-by: Luc Heinrich <luc@honk-honk.com>
> ---
> git-svn.perl | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/git-svn.perl b/git-svn.perl
> index 80a5728..7609a83 100755
> --- a/git-svn.perl
> +++ b/git-svn.perl
> @@ -2591,7 +2591,7 @@ sub set_tree {
> my ($self, $tree) = (shift, shift);
> my $log_entry = ::get_commit_entry($tree);
> unless ($self->{last_rev}) {
> - fatal("Must have an existing revision to commit");
> + ::fatal("Must have an existing revision to commit");
> }
> my %ed_opts = ( r => $self->{last_rev},
> log => $log_entry->{log},
Shouldn't the same change be done for the fatal call from apply_diff in
SVN::Git::Editor package?
prev parent reply other threads:[~2008-10-12 5:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-29 13:58 [PATCH] git-svn: call 'fatal' correctly in set-tree Luc Heinrich
2008-10-12 5:34 ` Junio C Hamano [this message]
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=7v63nyidgx.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=luc@honk-honk.com \
--cc=spearce@spearce.org \
/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