git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-svn: quiet some warnings when run only with --version/--help
@ 2007-04-17  9:41 Eric Wong
  2007-04-17  9:46 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Wong @ 2007-04-17  9:41 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

These are harmless but annoying.  They were introduced in
512b620bd9fef7f170562ecad835e37479f051ce

Signed-off-by: Eric Wong <normalperson@yhbt.net>
---

 Junio: did you miss
 http://permalink.gmane.org/gmane.comp.version-control.git/44493 ?

 Thanks,

 git-svn.perl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/git-svn.perl b/git-svn.perl
index eb3b79c..d2a5fe4 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -168,14 +168,14 @@ for (my $i = 0; $i < @ARGV; $i++) {
 my %opts = %{$cmd{$cmd}->[2]} if (defined $cmd);
 
 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,
                     'minimize-connections' => \$Git::SVN::Migration::_minimize,
                     'id|i=s' => \$Git::SVN::default_ref_id,
                     'svn-remote|remote|R=s' => sub {
                        $Git::SVN::no_reuse_existing = 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;
 version() if $_version;

-- 
Eric Wong

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] git-svn: quiet some warnings when run only with --version/--help
  2007-04-17  9:41 [PATCH] git-svn: quiet some warnings when run only with --version/--help Eric Wong
@ 2007-04-17  9:46 ` Junio C Hamano
  2007-04-17 10:28   ` Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2007-04-17  9:46 UTC (permalink / raw)
  To: Eric Wong; +Cc: git

Eric Wong <normalperson@yhbt.net> writes:

> These are harmless but annoying.  They were introduced in
> 512b620bd9fef7f170562ecad835e37479f051ce
>
> Signed-off-by: Eric Wong <normalperson@yhbt.net>
> ---
>
>  Junio: did you miss
>  http://permalink.gmane.org/gmane.comp.version-control.git/44493 ?

Indeed.  Are these two 'maint' material?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] git-svn: quiet some warnings when run only with --version/--help
  2007-04-17  9:46 ` Junio C Hamano
@ 2007-04-17 10:28   ` Eric Wong
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Wong @ 2007-04-17 10:28 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Junio C Hamano <junkio@cox.net> wrote:
> Eric Wong <normalperson@yhbt.net> writes:
> 
> > These are harmless but annoying.  They were introduced in
> > 512b620bd9fef7f170562ecad835e37479f051ce
> >
> > Signed-off-by: Eric Wong <normalperson@yhbt.net>
> > ---
> >
> >  Junio: did you miss
> >  http://permalink.gmane.org/gmane.comp.version-control.git/44493 ?
> 
> Indeed.  Are these two 'maint' material?

Yes.  Definitely so.

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-17 10:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-17  9:41 [PATCH] git-svn: quiet some warnings when run only with --version/--help Eric Wong
2007-04-17  9:46 ` Junio C Hamano
2007-04-17 10:28   ` Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).