diff options
author | Shawn O. Pearce <sop@google.com> | 2008-11-04 07:37:10 -0800 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2008-11-05 18:08:32 -0800 |
commit | e284ad1d1a2c6fa0e0ac800e87b2607f9bda339e (patch) | |
tree | fcf35ac784ec2e13c78ee3882ccb1fec0ad3d049 /repo | |
parent | 3e5481999d5f853e19ee5caaaaa968fc4b5176ab (diff) | |
download | git-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-x | repo | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -28,7 +28,7 @@ if __name__ == '__main__': | |||
28 | del magic | 28 | del 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 |
31 | VERSION = (1, 6) | 31 | VERSION = (1, 7) |
32 | 32 | ||
33 | # increment this if the MAINTAINER_KEYS block is modified | 33 | # increment this if the MAINTAINER_KEYS block is modified |
34 | KEYRING_VERSION = (1,0) | 34 | KEYRING_VERSION = (1,0) |
@@ -115,6 +115,9 @@ group.add_option('-b', '--manifest-branch', | |||
115 | group.add_option('-m', '--manifest-name', | 115 | group.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') |
118 | group.add_option('--mirror', | ||
119 | dest='mirror', action='store_true', | ||
120 | help='mirror the forrest') | ||
118 | 121 | ||
119 | # Tool | 122 | # Tool |
120 | group = init_optparse.add_option_group('Version options') | 123 | group = init_optparse.add_option_group('Version options') |