@matheusbsbs / matheus-bagliano / commits / 0a1a1c8615
Fork 0

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 <luc@honk-honk.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Luc Heinrich committed Sep 29, 2008 at 15:58 UTC 0a1a1c8615ec0049d2d7fcd849cfddd978170752
1 file changed +1 -1
git-svn.perl
+1 -1
@@ -2571,7 +2571,7 @@ sub set_tree {
2571 my ($self, $tree) = (shift, shift);
2572 my $log_entry = ::get_commit_entry($tree);
2573 unless ($self->{last_rev}) {
2574 - fatal("Must have an existing revision to commit");
2574 + ::fatal("Must have an existing revision to commit");
2575 }
2576 my %ed_opts = ( r => $self->{last_rev},
2577 log => $log_entry->{log},