diff options
author | Shawn O. Pearce <sop@google.com> | 2010-10-08 10:02:09 +0200 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2010-10-29 12:08:50 -0700 |
commit | 88443387b1b0508f43b57e104821c6b375806fea (patch) | |
tree | d3d1e5a3e6caecd8eabbdf7a1491ddcc2788aa3d /repo | |
parent | 99482ae58a74e236fb40b65c267163a5690f39e1 (diff) | |
download | git-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-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, 8) | 31 | VERSION = (1, 9) |
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) |
@@ -118,6 +118,9 @@ group.add_option('-m', '--manifest-name', | |||
118 | group.add_option('--mirror', | 118 | group.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') |
121 | group.add_option('--reference', | ||
122 | dest='reference', | ||
123 | help='location of mirror directory', metavar='DIR') | ||
121 | 124 | ||
122 | # Tool | 125 | # Tool |
123 | group = init_optparse.add_option_group('repo Version options') | 126 | group = init_optparse.add_option_group('repo Version options') |