git-svn: fix find-rev error message when missing arg
[gitweb.git] / git-svn.perl
index 29f39c0831227a2a7c7b482cdf8277e95cf63245..38e1d5944d309f6b1f4b58fd5857a1bfb0545cc9 100755 (executable)
@@ -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;