Skip to content

Commit 0a1a1c8

Browse files
lucskyspearce
authored andcommitted
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 <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent 2670ddc commit 0a1a1c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-svn.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2571,7 +2571,7 @@ sub set_tree {
25712571
my ($self, $tree) = (shift, shift);
25722572
my $log_entry = ::get_commit_entry($tree);
25732573
unless ($self->{last_rev}) {
2574-
fatal("Must have an existing revision to commit");
2574+
::fatal("Must have an existing revision to commit");
25752575
}
25762576
my %ed_opts = ( r => $self->{last_rev},
25772577
log => $log_entry->{log},

0 commit comments

Comments
 (0)