New issue
Advanced search Search tips
Starred by 1 user

Issue metadata

Status: Submitted
Owner: ----
Closed: Dec 20
Components:



Sign in to add a comment
link

Issue 10200: Repo gitc-init aborts with repo-1.13.0

Reported by ereth@google.com, Dec 20

Issue description

Affected Version: 1.13.0

What steps will reproduce the problem?
1. repo gitc-init -h

What is the expected output?
Help message with options for gitc-init subcommand.

What do you see instead?
Traceback (most recent call last):
  File "./repo", line 917, in <module>
    main(sys.argv[1:])
  File "./repo", line 879, in main
    _Init(args, gitc_init=(cmd == 'gitc-init'))
  File "./repo", line 307, in _Init
    _GitcInitOptions(init_optparse)
  File "./repo", line 254, in _GitcInitOptions
    help='The name of the gitc_client instance to create or modify.')
  File "/usr/lib/python2.7/optparse.py", line 1021, in add_option
    self._check_conflict(option)
  File "/usr/lib/python2.7/optparse.py", line 996, in _check_conflict
    option)
optparse.OptionConflictError: option -c/--gitc-client: conflicting option string(s): -c

Please provide any additional information below.
This same error is seen for any invocation of the repo gitc-init subcommand.
 

Comment 1 by vapier@chromium.org, Dec 20

Components: repo

Comment 2 by vapier@chromium.org, Dec 20

Status: ChangeUnderReview (was: New)

Comment 3 by jrn@google.com, Dec 20

Project Member
Status: Submitted (was: ChangeUnderReview)

Comment 4 by bugdroid1@chromium.org, Jan 10

The following revision refers to this bug:
  https://chromium.googlesource.com/external/repo/+/12ee5446e9eb8b9d0ae5425fb1e00bf05f93facd

commit 12ee5446e9eb8b9d0ae5425fb1e00bf05f93facd
Author: Ereth McKnight-MacNeil <ereth@google.com>
Date: Thu Dec 20 19:55:02 2018

init: Remove -c short option for --current-branch

This option conflicts with the gitc-init -c short option.

Bug:  https://crbug.com/gerrit/10200 
Change-Id: I06f37564429ca0bd4c0bbea6066daae4f663c838

[modify] https://crrev.com/12ee5446e9eb8b9d0ae5425fb1e00bf05f93facd/repo
[modify] https://crrev.com/12ee5446e9eb8b9d0ae5425fb1e00bf05f93facd/subcmds/init.py

Sign in to add a comment