summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorLuc Heinrich <luc@honk-honk.com>2008-09-29 15:58:18 +0200
committerShawn O. Pearce <spearce@spearce.org>2008-09-30 13:58:59 -0700
commit0a1a1c8615ec0049d2d7fcd849cfddd978170752 (patch)
tree58cd359b16ce27500baa2516025d8a0eb990129e /git-svn.perl
parent2670ddce53b9061edf2fdcd912dd4736b53bb3fe (diff)
downloadgit-0a1a1c8615ec0049d2d7fcd849cfddd978170752.tar.gz
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl2
1 files changed, 1 insertions, 1 deletions
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},