summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2008-11-04 07:37:10 -0800
committerShawn O. Pearce <sop@google.com>2008-11-05 18:08:32 -0800
commite284ad1d1a2c6fa0e0ac800e87b2607f9bda339e (patch)
treefcf35ac784ec2e13c78ee3882ccb1fec0ad3d049 /repo
parent3e5481999d5f853e19ee5caaaaa968fc4b5176ab (diff)
downloadgit-repo-e284ad1d1a2c6fa0e0ac800e87b2607f9bda339e.tar.gz
Add 'repo init --mirror' to download a complete forrestv1.1
The mirror option downloads a complete forrest (as described by the manifest) and creates a replica of the remote repositories rather than a client working directory. This permits other clients to sync off the mirror site. A mirror can be positioned in a "DMZ", where the mirror executes "repo sync" to obtain changes from the external upstream and clients inside the protected zone operate off the mirror only, and therefore do not require direct git:// access to the external upstream repositories. Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'repo')
-rwxr-xr-xrepo5
1 files changed, 4 insertions, 1 deletions
diff --git a/repo b/repo
index 9f107a93..bfa4ca3c 100755
--- a/repo
+++ b/repo
@@ -28,7 +28,7 @@ if __name__ == '__main__':
28del magic 28del magic
29 29
30# increment this whenever we make important changes to this script 30# increment this whenever we make important changes to this script
31VERSION = (1, 6) 31VERSION = (1, 7)
32 32
33# increment this if the MAINTAINER_KEYS block is modified 33# increment this if the MAINTAINER_KEYS block is modified
34KEYRING_VERSION = (1,0) 34KEYRING_VERSION = (1,0)
@@ -115,6 +115,9 @@ group.add_option('-b', '--manifest-branch',
115group.add_option('-m', '--manifest-name', 115group.add_option('-m', '--manifest-name',
116 dest='manifest_name', 116 dest='manifest_name',
117 help='initial manifest file', metavar='NAME.xml') 117 help='initial manifest file', metavar='NAME.xml')
118group.add_option('--mirror',
119 dest='mirror', action='store_true',
120 help='mirror the forrest')
118 121
119# Tool 122# Tool
120group = init_optparse.add_option_group('Version options') 123group = init_optparse.add_option_group('Version options')