* [PATCH] git-svn: call 'fatal' correctly in set-tree
@ 2008-09-29 13:58 Luc Heinrich
2008-10-12 5:34 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Luc Heinrich @ 2008-09-29 13:58 UTC (permalink / raw)
To: git; +Cc: gitster, Luc Heinrich
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},
--
1.6.0.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] git-svn: call 'fatal' correctly in set-tree
2008-09-29 13:58 [PATCH] git-svn: call 'fatal' correctly in set-tree Luc Heinrich
@ 2008-10-12 5:34 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2008-10-12 5:34 UTC (permalink / raw)
To: Luc Heinrich; +Cc: git, spearce
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?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-12 5:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox