summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorDoug Anderson <dianders@chromium.org>2011-06-13 21:42:06 -0700
committerDoug Anderson <dianders@chromium.org>2011-06-14 16:59:19 -0700
commit49cd59bc867d5fc29abcdbc4aac9bb7b826b6705 (patch)
tree98d2aa17a934633e7d5398fe9c24fa2f4e2ba61e /repo
parent30d452905f166b316152f236422f85c8aa75a2d0 (diff)
downloadgit-repo-49cd59bc867d5fc29abcdbc4aac9bb7b826b6705.tar.gz
Add --depth option to main repo wrapper.
See related repo change: https://review.source.android.com/#change,22722 Change-Id: I9bdd86971c94604477b91cdf47d6fac2c0bc186e
Diffstat (limited to 'repo')
-rwxr-xr-xrepo7
1 files changed, 5 insertions, 2 deletions
diff --git a/repo b/repo
index ad9e005f..32f0df0b 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, 10) 31VERSION = (1, 11)
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)
@@ -121,6 +121,10 @@ group.add_option('--mirror',
121group.add_option('--reference', 121group.add_option('--reference',
122 dest='reference', 122 dest='reference',
123 help='location of mirror directory', metavar='DIR') 123 help='location of mirror directory', metavar='DIR')
124group.add_option('--depth', type='int', default=None,
125 dest='depth',
126 help='create a shallow clone with given depth; see git clone')
127
124 128
125# Tool 129# Tool
126group = init_optparse.add_option_group('repo Version options') 130group = init_optparse.add_option_group('repo Version options')
@@ -596,4 +600,3 @@ def main(orig_args):
596 600
597if __name__ == '__main__': 601if __name__ == '__main__':
598 main(sys.argv[1:]) 602 main(sys.argv[1:])
599