Index: fetch.py |
diff --git a/fetch.py b/fetch.py |
index 897356f299c5aaaeff22b71f44c9259b3b24f867..d3bcacd793195438a658cee1e03c7e83fbc70f93 100755 |
--- a/fetch.py |
+++ b/fetch.py |
@@ -114,8 +114,6 @@ |
sync_cmd = ['sync'] |
if self.options.nohooks: |
sync_cmd.append('--nohooks') |
- if self.options.no_history: |
- sync_cmd.append('--no-history') |
if self.spec.get('with_branch_heads', False): |
sync_cmd.append('--with_branch_heads') |
self.run_gclient(*sync_cmd) |
@@ -209,7 +207,6 @@ |
-h, --help, help Print this message. |
--nohooks Don't run hooks after checkout. |
-n, --dry-run Don't run commands, only print them. |
- --no-history Perform shallow clones, don't fetch the full git history. |
""" % os.path.basename(sys.argv[0])) |
sys.exit(bool(msg)) |
@@ -223,7 +220,6 @@ |
dry_run = False |
nohooks = False |
- no_history = False |
while len(argv) >= 2: |
arg = argv[1] |
if not arg.startswith('-'): |
@@ -233,8 +229,6 @@ |
dry_run = True |
elif arg == '--nohooks': |
nohooks = True |
- elif arg == '--no-history': |
- no_history = True |
else: |
usage('Invalid option %s.' % arg) |
@@ -247,11 +241,7 @@ |
recipe = argv[1] |
props = argv[2:] |
- return ( |
- optparse.Values( |
- {'dry_run':dry_run, 'nohooks':nohooks, 'no_history': no_history }), |
- recipe, |
- props) |
+ return optparse.Values({'dry_run':dry_run, 'nohooks':nohooks }), recipe, props |
def run_recipe_fetch(recipe, props, aliased=False): |