From f4dda9a1be396808fad0cda8316d3a0d6f839ee1 Mon Sep 17 00:00:00 2001 From: Naseer Ahmed Date: Thu, 1 Dec 2016 18:49:54 -0500 Subject: init: Add no-tags and current branch options This avoids fetching tags and branches for huge manifests Change-Id: I19c9724d75364440b881b297d42b906f541f73ff --- repo | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'repo') diff --git a/repo b/repo index 4293c792..dcd48e03 100755 --- a/repo +++ b/repo @@ -23,7 +23,7 @@ REPO_REV = 'stable' # limitations under the License. # increment this whenever we make important changes to this script -VERSION = (1, 23) +VERSION = (1, 24) # increment this if the MAINTAINER_KEYS block is modified KEYRING_VERSION = (1, 2) @@ -175,6 +175,9 @@ group.add_option('-b', '--manifest-branch', group.add_option('-m', '--manifest-name', dest='manifest_name', help='initial manifest file', metavar='NAME.xml') +group.add_option('-c', '--current-branch', + dest='current_branch_only', action='store_true', + help='fetch only current manifest branch from server') group.add_option('--mirror', dest='mirror', action='store_true', help='create a replica of the remote repositories ' @@ -202,6 +205,9 @@ group.add_option('-p', '--platform', group.add_option('--no-clone-bundle', dest='no_clone_bundle', action='store_true', help='disable use of /clone.bundle on HTTP/HTTPS') +group.add_option('--no-tags', + dest='no_tags', action='store_true', + help="don't fetch tags in the manifest") # Tool -- cgit v1.2.3-54-g00ecf