summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2010-10-08 10:02:09 +0200
committerShawn O. Pearce <sop@google.com>2010-10-29 12:08:50 -0700
commit88443387b1b0508f43b57e104821c6b375806fea (patch)
treed3d1e5a3e6caecd8eabbdf7a1491ddcc2788aa3d /repo
parent99482ae58a74e236fb40b65c267163a5690f39e1 (diff)
downloadgit-repo-88443387b1b0508f43b57e104821c6b375806fea.tar.gz
sync: Enable use of git clone --reference
Use git clone to initialize a new repository, and when possible allow callers to use --reference to reuse an existing checkout as the initial object storage area for the new checkout. Change-Id: Ie27f760247f311ce484c6d3e85a90d94da2febfc 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 13742559..bdc05c3b 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, 8) 31VERSION = (1, 9)
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)
@@ -118,6 +118,9 @@ group.add_option('-m', '--manifest-name',
118group.add_option('--mirror', 118group.add_option('--mirror',
119 dest='mirror', action='store_true', 119 dest='mirror', action='store_true',
120 help='mirror the forrest') 120 help='mirror the forrest')
121group.add_option('--reference',
122 dest='reference',
123 help='location of mirror directory', metavar='DIR')
121 124
122# Tool 125# Tool
123group = init_optparse.add_option_group('repo Version options') 126group = init_optparse.add_option_group('repo Version options')