summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2670ddc)
raw | patch | inline | side by side (parent: 2670ddc)
author | Luc Heinrich <luc@honk-honk.com> | |
Mon, 29 Sep 2008 13:58:18 +0000 (15:58 +0200) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 30 Sep 2008 20:58:59 +0000 (13:58 -0700) |
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>
Signed-off-by: Luc Heinrich <luc@honk-honk.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index 7c7fc39483e2713674a8cf3526651e34bdb9e9f7..33e1b503c4d58f5f0a0c109a37968419710fbd11 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
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},