From: Luc Heinrich Date: Mon, 29 Sep 2008 13:58:18 +0000 (+0200) Subject: git-svn: call 'fatal' correctly in set-tree X-Git-Tag: v1.6.0.3~49 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0a1a1c8615ec0049d2d7fcd849cfddd978170752;p=git.git git-svn: call 'fatal' correctly in set-tree 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 Signed-off-by: Shawn O. Pearce --- diff --git a/git-svn.perl b/git-svn.perl index 7c7fc3948..33e1b503c 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -2571,7 +2571,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},