From: Marc-Andre Lureau Date: Tue, 11 Mar 2008 08:00:45 +0000 (+0200) Subject: git-svn: fix find-rev error message when missing arg X-Git-Tag: v1.5.5-rc0~2^2~14 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ea14e6c55427f50f78fe47187cd4edb9845943a1;p=git.git git-svn: fix find-rev error message when missing arg Just let the user know that a revision argument is missing instead of a perl error. This error message mimic the "init" error message, but could be improved. Signed-off-by: Marc-Andre Lureau Acked-by: Eric Wong Signed-off-by: Junio C Hamano --- diff --git a/git-svn.perl b/git-svn.perl index 29f39c083..38e1d5944 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -519,7 +519,8 @@ sub cmd_dcommit { } sub cmd_find_rev { - my $revision_or_hash = shift; + my $revision_or_hash = shift or die "SVN or git revision required ", + "as a command-line argument\n"; my $result; if ($revision_or_hash =~ /^r\d+$/) { my $head = shift;