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 /subcmds/sync.py | |
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 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 9af12322..8050e515 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -102,8 +102,9 @@ the manifest. | |||
102 | self._Fetch(*missing) | 102 | self._Fetch(*missing) |
103 | 103 | ||
104 | for project in all: | 104 | for project in all: |
105 | if not project.Sync_LocalHalf(): | 105 | if project.worktree: |
106 | sys.exit(1) | 106 | if not project.Sync_LocalHalf(): |
107 | sys.exit(1) | ||
107 | 108 | ||
108 | 109 | ||
109 | def _VerifyTag(project): | 110 | def _VerifyTag(project): |