summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaman Tenneti <rtenneti@google.com>2021-11-01 14:49:16 -0700
committerRaman Tenneti <rtenneti@google.com>2021-11-01 22:15:53 +0000
commit6251729cb43554dc5f63b80e96bcbce0ad688b40 (patch)
treea1948f77a15d27fa3f1b76368cd9a4f2a6dfe113
parent11b30b91df1f0e03b53da970ec2588e85817bacc (diff)
downloadgit-repo-6251729cb43554dc5f63b80e96bcbce0ad688b40.tar.gz
superproject: added 'implies -c' in the help of --use-superproject option.
sync.py: deleted unused import errno. Tested: $ ./run_tests $ flake8 repo subcmds/sync.py Bug: https://crbug.com/gerrit/15208 Change-Id: I2bb3098f5602ded3861e000100766041ad93b53d Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/322555 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Raman Tenneti <rtenneti@google.com>
-rwxr-xr-xrepo2
-rw-r--r--subcmds/sync.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/repo b/repo
index 4cddbf1e..2af77ace 100755
--- a/repo
+++ b/repo
@@ -372,7 +372,7 @@ def InitParser(parser, gitc_init=False):
372 help='filter for use with --partial-clone ' 372 help='filter for use with --partial-clone '
373 '[default: %default]') 373 '[default: %default]')
374 group.add_option('--use-superproject', action='store_true', default=None, 374 group.add_option('--use-superproject', action='store_true', default=None,
375 help='use the manifest superproject to sync projects') 375 help='use the manifest superproject to sync projects; implies -c')
376 group.add_option('--no-use-superproject', action='store_false', 376 group.add_option('--no-use-superproject', action='store_false',
377 dest='use_superproject', 377 dest='use_superproject',
378 help='disable use of manifest superprojects') 378 help='disable use of manifest superprojects')
diff --git a/subcmds/sync.py b/subcmds/sync.py
index 01704095..c2303232 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -12,7 +12,6 @@
12# See the License for the specific language governing permissions and 12# See the License for the specific language governing permissions and
13# limitations under the License. 13# limitations under the License.
14 14
15import errno
16import functools 15import functools
17import http.cookiejar as cookielib 16import http.cookiejar as cookielib
18import io 17import io
@@ -235,7 +234,7 @@ later is required to fix a server side protocol bug.
235 dest='fetch_submodules', action='store_true', 234 dest='fetch_submodules', action='store_true',
236 help='fetch submodules from server') 235 help='fetch submodules from server')
237 p.add_option('--use-superproject', action='store_true', 236 p.add_option('--use-superproject', action='store_true',
238 help='use the manifest superproject to sync projects') 237 help='use the manifest superproject to sync projects; implies -c')
239 p.add_option('--no-use-superproject', action='store_false', 238 p.add_option('--no-use-superproject', action='store_false',
240 dest='use_superproject', 239 dest='use_superproject',
241 help='disable use of manifest superprojects') 240 help='disable use of manifest superprojects')