[PATCH] git-svn: find-rev error message when missing arg
- From
Marc-Andre Lureau <marcandre.lureau@gmail.com>
- Date
- Mar 11, 2008, 08:00 UTC
- Message-ID
- <1205222445-8077-1-git-send-email-marcandre.lureau@gmail.com>
- In-Reply-To
- <20080311051910.GB9389@hand.yhbt.net>
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> --- git-svn.perl | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl index 1195569..d8b38c9 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -522,7 +522,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;
-- 1.5.4.4.482.ga8b1