From 0a1a1c8615ec0049d2d7fcd849cfddd978170752 Mon Sep 17 00:00:00 2001 From: Luc Heinrich Date: Mon, 29 Sep 2008 15:58:18 +0200 Subject: 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 --- git-svn.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-svn.perl') diff --git a/git-svn.perl b/git-svn.perl index 7c7fc39483..33e1b503c4 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}, -- cgit v1.2.1