diff options
Diffstat (limited to 'repo')
-rwxr-xr-x | repo | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -328,8 +328,10 @@ def GetParser(gitc_init=False): | |||
328 | group = parser.add_option_group('repo Version options') | 328 | group = parser.add_option_group('repo Version options') |
329 | group.add_option('--repo-url', metavar='URL', | 329 | group.add_option('--repo-url', metavar='URL', |
330 | help='repo repository location ($REPO_URL)') | 330 | help='repo repository location ($REPO_URL)') |
331 | group.add_option('--repo-branch', metavar='REVISION', | 331 | group.add_option('--repo-rev', metavar='REV', |
332 | help='repo branch or revision ($REPO_REV)') | 332 | help='repo branch or revision ($REPO_REV)') |
333 | group.add_option('--repo-branch', dest='repo_rev', | ||
334 | help=optparse.SUPPRESS_HELP) | ||
333 | group.add_option('--no-repo-verify', | 335 | group.add_option('--no-repo-verify', |
334 | dest='repo_verify', default=True, action='store_false', | 336 | dest='repo_verify', default=True, action='store_false', |
335 | help='do not verify repo source code') | 337 | help='do not verify repo source code') |
@@ -473,7 +475,7 @@ def _Init(args, gitc_init=False): | |||
473 | opt.verbose = opt.output_mode is True | 475 | opt.verbose = opt.output_mode is True |
474 | 476 | ||
475 | url = opt.repo_url or REPO_URL | 477 | url = opt.repo_url or REPO_URL |
476 | branch = opt.repo_branch or REPO_REV | 478 | branch = opt.repo_rev or REPO_REV |
477 | 479 | ||
478 | if branch.startswith('refs/heads/'): | 480 | if branch.startswith('refs/heads/'): |
479 | branch = branch[len('refs/heads/'):] | 481 | branch = branch[len('refs/heads/'):] |