Volume XXII, number 280Wednesday, October 7, 2026Latest message 56 minutes ago

The Git List

News and archive of git@vger.kernel.org, since April 2005

[BUG] git-svn: 'Duplicate specification "id|i=s" for option "i"'

1 messages between May 10, 2026 and May 10, 2026, from optik@gmx.li.

Plain Markdown or JSON for tools and agents.

optik@gmx.liMay 10, 2026, 21:30 UTC on lore
Fedora 43 aarch64
git version 2.54.0
Installed package: "git-2.54.0-1.fc43.aarch64"

I get this "warning" ("become a fatal error in a future") while using git-svn meanwhile:

 > Duplicate specification "id|i=s" for option "i"
This problem is here in the git code:
 > my $rv = GetOptions(%opts, '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] });
Link: https://github.com/git/git/blob/master/git-svn.perl#L352
Source is a change in Getopt:Long 2.55
Installed package: "util-linux-2.41.4-7.fc43.aarch64"
 > * Fix long standing bug that duplicate options were not detected when
 >   the options differ in case while ignore_case is in effect.
 >   This will now yield a warning and become a fatal error in a future
 >   release.
Link: https://metacpan.org/dist/Getopt-Long/changes
Currently it still works as expectd, until getopt is changed

Back to recent threads

[BUG] git-svn: 'Duplicate specification "id|i=s" for option "i"' | The Git List