diff options
author | LaMont Jones <lamontjones@google.com> | 2022-10-27 21:42:43 +0000 |
---|---|---|
committer | LaMont Jones <lamontjones@google.com> | 2022-10-27 21:52:02 +0000 |
commit | 6c8b894d8d06c8b1bf852b52676ee055a21718d6 (patch) | |
tree | 67ad0639c31fff1a54c8cd7c2d74013f7199436c /subcmds/init.py | |
parent | b6cfa095006b30a430e1ad3e772c5a5b53cdf875 (diff) | |
download | git-repo-6c8b894d8d06c8b1bf852b52676ee055a21718d6.tar.gz |
Revert "init: change --depth default to 1 for manifest repo"
This reverts commit 076d54652e0025e1360f66e483926477b910b02e.
Reason for revert: crbug.com/gerrit/16358
Change-Id: I2970eb50677cca69786f71edffe4aa5271cf139f
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/349834
Reviewed-by: Sam Saccone <samccone@google.com>
Tested-by: LaMont Jones <lamontjones@google.com>
Reviewed-by: Xin Li <delphij@google.com>
Diffstat (limited to 'subcmds/init.py')
-rw-r--r-- | subcmds/init.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 0c979cd4..cae0e342 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -109,10 +109,6 @@ to update the working directory files. | |||
109 | Args: | 109 | Args: |
110 | opt: options from optparse. | 110 | opt: options from optparse. |
111 | """ | 111 | """ |
112 | # Normally this value is set when instantiating the project, but the | ||
113 | # manifest project is special and is created when instantiating the | ||
114 | # manifest which happens before we parse options. | ||
115 | self.manifest.manifestProject.clone_depth = opt.manifest_depth | ||
116 | if not self.manifest.manifestProject.Sync( | 112 | if not self.manifest.manifestProject.Sync( |
117 | manifest_url=opt.manifest_url, | 113 | manifest_url=opt.manifest_url, |
118 | manifest_branch=opt.manifest_branch, | 114 | manifest_branch=opt.manifest_branch, |