diff options
author | Luc Heinrich <luc@honk-honk.com> | 2008-09-29 15:58:18 +0200 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-09-30 13:58:59 -0700 |
commit | 0a1a1c8615ec0049d2d7fcd849cfddd978170752 (patch) | |
tree | 58cd359b16ce27500baa2516025d8a0eb990129e | |
parent | Replace svn.foo.org with svn.example.com in git-svn docs (RFC 2606) (diff) | |
download | tgif-0a1a1c8615ec0049d2d7fcd849cfddd978170752.tar.xz |
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>
-rwxr-xr-x | git-svn.perl | 2 |
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}, |