提交 c284914a 编写于 作者: E Eric Wong 提交者: Junio C Hamano

git-svn: quiet some warnings when run only with --version/--help

These are harmless but annoying.  They were introduced in
512b620bSigned-off-by: NEric Wong <normalperson@yhbt.net>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 d627de6b
...@@ -168,14 +168,14 @@ BEGIN ...@@ -168,14 +168,14 @@ BEGIN
my %opts = %{$cmd{$cmd}->[2]} if (defined $cmd); my %opts = %{$cmd{$cmd}->[2]} if (defined $cmd);
read_repo_config(\%opts); read_repo_config(\%opts);
Getopt::Long::Configure('pass_through') if $cmd eq 'log'; Getopt::Long::Configure('pass_through') if ($cmd && $cmd eq 'log');
my $rv = GetOptions(%opts, 'help|H|h' => \$_help, 'version|V' => \$_version, my $rv = GetOptions(%opts, 'help|H|h' => \$_help, 'version|V' => \$_version,
'minimize-connections' => \$Git::SVN::Migration::_minimize, 'minimize-connections' => \$Git::SVN::Migration::_minimize,
'id|i=s' => \$Git::SVN::default_ref_id, 'id|i=s' => \$Git::SVN::default_ref_id,
'svn-remote|remote|R=s' => sub { 'svn-remote|remote|R=s' => sub {
$Git::SVN::no_reuse_existing = 1; $Git::SVN::no_reuse_existing = 1;
$Git::SVN::default_repo_id = $_[1] }); $Git::SVN::default_repo_id = $_[1] });
exit 1 if (!$rv && $cmd ne 'log'); exit 1 if (!$rv && $cmd && $cmd ne 'log');
usage(0) if $_help; usage(0) if $_help;
version() if $_version; version() if $_version;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册