summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/init.py7
-rw-r--r--subcmds/sync.py2
2 files changed, 5 insertions, 4 deletions
diff --git a/subcmds/init.py b/subcmds/init.py
index 94bd44ca..431165d4 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -166,9 +166,10 @@ to update the working directory files.
166 g.add_option('--repo-url', 166 g.add_option('--repo-url',
167 dest='repo_url', 167 dest='repo_url',
168 help='repo repository location', metavar='URL') 168 help='repo repository location', metavar='URL')
169 g.add_option('--repo-branch', 169 g.add_option('--repo-rev', metavar='REV',
170 dest='repo_branch', 170 help='repo branch or revision')
171 help='repo branch or revision', metavar='REVISION') 171 g.add_option('--repo-branch', dest='repo_rev',
172 help=optparse.SUPPRESS_HELP)
172 g.add_option('--no-repo-verify', 173 g.add_option('--no-repo-verify',
173 dest='repo_verify', default=True, action='store_false', 174 dest='repo_verify', default=True, action='store_false',
174 help='do not verify repo source code') 175 help='do not verify repo source code')
diff --git a/subcmds/sync.py b/subcmds/sync.py
index dadf2e45..de6deecb 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -850,7 +850,7 @@ later is required to fix a server side protocol bug.
850 base = rp.GetBranch(cb).merge 850 base = rp.GetBranch(cb).merge
851 if not base or not base.startswith('refs/heads/'): 851 if not base or not base.startswith('refs/heads/'):
852 print('warning: repo is not tracking a remote branch, so it will not ' 852 print('warning: repo is not tracking a remote branch, so it will not '
853 'receive updates; run `repo init --repo-branch=stable` to fix.', 853 'receive updates; run `repo init --repo-rev=stable` to fix.',
854 file=sys.stderr) 854 file=sys.stderr)
855 855
856 mp = self.manifest.manifestProject 856 mp = self.manifest.manifestProject