Skip to content

Commit

Permalink
git-svn: fix find-rev error message when missing arg
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marc-Andre Lureau authored and Junio C Hamano committed Mar 12, 2008
1 parent 7339eb0 commit ea14e6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ea14e6c

Please sign in to comment.