summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-03-12 04:40:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-03-12 04:40:47 (GMT)
commitb81a7b58875e07d7e82aafced1de9834ba1ef94a (patch)
tree47a7e33fdbd718fce1948183e1905a174c43fa40 /git-svn.perl
parent5d921e2931e5041884d8f86fdccc9004a7b071cc (diff)
parentea14e6c55427f50f78fe47187cd4edb9845943a1 (diff)
downloadgit-b81a7b58875e07d7e82aafced1de9834ba1ef94a.zip
git-b81a7b58875e07d7e82aafced1de9834ba1ef94a.tar.gz
git-b81a7b58875e07d7e82aafced1de9834ba1ef94a.tar.bz2
Merge branch 'maint'
* maint: git-svn: fix find-rev error message when missing arg t0021: tr portability fix for Solaris launch_editor(): allow spaces in the filename git rebase --abort: always restore the right commit
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl3
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;