git-svn: fix a sloppy Getopt::Long usage
authorRobin H. Johnson <robbat2@gentoo.org>
Tue, 5 May 2009 18:16:14 +0000 (11:16 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 May 2009 05:02:39 +0000 (22:02 -0700)
Getopt-Long v2.38 is much stricter about sloppy getopt usage. The
trailing pipe causes git-svn testcases to fail for all of the --stdin
argument calls.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-svn.perl

index 25ed2f43335bfa717d9bbc1a799c7841c25b1cc0..8b9ad38f85653e5a7f03eb623610893818c92ddb 100755 (executable)
@@ -133,7 +133,7 @@ my %cmd = (
                        %cmt_opts, %fc_opts } ],
        'set-tree' => [ \&cmd_set_tree,
                        "Set an SVN repository to a git tree-ish",
-                       { 'stdin|' => \$_stdin, %cmt_opts, %fc_opts, } ],
+                       { 'stdin' => \$_stdin, %cmt_opts, %fc_opts, } ],
        'create-ignore' => [ \&cmd_create_ignore,
                             'Create a .gitignore per svn:ignore',
                             { 'revision|r=i' => \$_revision