summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7339eb0)
raw | patch | inline | side by side (parent: 7339eb0)
author | Marc-Andre Lureau <marcandre.lureau@gmail.com> | |
Tue, 11 Mar 2008 08:00:45 +0000 (10:00 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 12 Mar 2008 04:20:50 +0000 (21:20 -0700) |
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>
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>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index 29f39c0831227a2a7c7b482cdf8277e95cf63245..38e1d5944d309f6b1f4b58fd5857a1bfb0545cc9 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
}
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;