@matheusbsbs / matheus-bagliano / commits / ea14e6c554
Fork 0

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 <marcandre.lureau@gmail.com> Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Marc-Andre Lureau committed Mar 11, 2008 at 10:00 UTC ea14e6c55427f50f78fe47187cd4edb9845943a1
1 file changed +2 -1
git-svn.perl
+2 -1
@@ -519,7 +519,8 @@ sub cmd_dcommit {
519 }
520
521 sub cmd_find_rev {
522 - my $revision_or_hash = shift;
522 + my $revision_or_hash = shift or die "SVN or git revision required ",
523 + "as a command-line argument\n";
524 my $result;
525 if ($revision_or_hash =~ /^r\d+$/) {
526 my $head = shift;