summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-04-21 00:25:24 -0400
committerMike Frysinger <vapier@google.com>2021-04-21 04:45:59 +0000
commitd2b086bea92674866ad30db3d579779682eb8cdc (patch)
treeaf308556e9a941bf798f5dd5b185790dd94d05ae /repo
parent6823bc269d63a66c8813803f1057eac328bc3ccb (diff)
downloadgit-repo-d2b086bea92674866ad30db3d579779682eb8cdc.tar.gz
init: restore default --manifest-name
The merge of the repo & init parser missed this default. When running `repo init ...` in an existing checkout but w/out the -m option, then repo would error out complaining that -m is required when it didn't do this before. Change-Id: I58035d48cc413b5d373702b9dc3b9ecd3fd1e900 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/303945 Tested-by: Mike Frysinger <vapier@google.com> Reviewed-by: Jonathan Nieder <jrn@google.com>
Diffstat (limited to 'repo')
-rwxr-xr-xrepo2
1 files changed, 1 insertions, 1 deletions
diff --git a/repo b/repo
index cf9f1863..d9c97de1 100755
--- a/repo
+++ b/repo
@@ -298,7 +298,7 @@ def InitParser(parser, gitc_init=False):
298 help='manifest repository location', metavar='URL') 298 help='manifest repository location', metavar='URL')
299 group.add_option('-b', '--manifest-branch', metavar='REVISION', 299 group.add_option('-b', '--manifest-branch', metavar='REVISION',
300 help='manifest branch or revision (use HEAD for default)') 300 help='manifest branch or revision (use HEAD for default)')
301 group.add_option('-m', '--manifest-name', 301 group.add_option('-m', '--manifest-name', default='default.xml',
302 help='initial manifest file', metavar='NAME.xml') 302 help='initial manifest file', metavar='NAME.xml')
303 group.add_option('-g', '--groups', default='default', 303 group.add_option('-g', '--groups', default='default',
304 help='restrict manifest projects to ones with specified ' 304 help='restrict manifest projects to ones with specified '