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 | |
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>
-rw-r--r-- | man/repo-gitc-init.1 | 4 | ||||
-rw-r--r-- | man/repo-init.1 | 4 | ||||
-rwxr-xr-x | repo | 3 | ||||
-rw-r--r-- | subcmds/init.py | 4 |
4 files changed, 0 insertions, 15 deletions
diff --git a/man/repo-gitc-init.1 b/man/repo-gitc-init.1 index d6ef5ab6..88136de6 100644 --- a/man/repo-gitc-init.1 +++ b/man/repo-gitc-init.1 | |||
@@ -45,10 +45,6 @@ sync any submodules associated with the manifest repo | |||
45 | \fB\-\-standalone\-manifest\fR | 45 | \fB\-\-standalone\-manifest\fR |
46 | download the manifest as a static file rather then | 46 | download the manifest as a static file rather then |
47 | create a git checkout of the manifest repo | 47 | create a git checkout of the manifest repo |
48 | .TP | ||
49 | \fB\-\-manifest\-depth\fR=\fI\,DEPTH\/\fR | ||
50 | create a shallow clone of the manifest repo with given | ||
51 | depth; see git clone (default: 1) | ||
52 | .SS Manifest (only) checkout options: | 48 | .SS Manifest (only) checkout options: |
53 | .TP | 49 | .TP |
54 | \fB\-\-current\-branch\fR | 50 | \fB\-\-current\-branch\fR |
diff --git a/man/repo-init.1 b/man/repo-init.1 index 0d45bf78..32b3ea1b 100644 --- a/man/repo-init.1 +++ b/man/repo-init.1 | |||
@@ -45,10 +45,6 @@ sync any submodules associated with the manifest repo | |||
45 | \fB\-\-standalone\-manifest\fR | 45 | \fB\-\-standalone\-manifest\fR |
46 | download the manifest as a static file rather then | 46 | download the manifest as a static file rather then |
47 | create a git checkout of the manifest repo | 47 | create a git checkout of the manifest repo |
48 | .TP | ||
49 | \fB\-\-manifest\-depth\fR=\fI\,DEPTH\/\fR | ||
50 | create a shallow clone of the manifest repo with given | ||
51 | depth; see git clone (default: 1) | ||
52 | .SS Manifest (only) checkout options: | 48 | .SS Manifest (only) checkout options: |
53 | .TP | 49 | .TP |
54 | \fB\-c\fR, \fB\-\-current\-branch\fR | 50 | \fB\-c\fR, \fB\-\-current\-branch\fR |
@@ -316,9 +316,6 @@ def InitParser(parser, gitc_init=False): | |||
316 | help='download the manifest as a static file ' | 316 | help='download the manifest as a static file ' |
317 | 'rather then create a git checkout of ' | 317 | 'rather then create a git checkout of ' |
318 | 'the manifest repo') | 318 | 'the manifest repo') |
319 | group.add_option('--manifest-depth', type='int', default=1, metavar='DEPTH', | ||
320 | help='create a shallow clone of the manifest repo with ' | ||
321 | 'given depth; see git clone (default: %default)') | ||
322 | 319 | ||
323 | # Options that only affect manifest project, and not any of the projects | 320 | # Options that only affect manifest project, and not any of the projects |
324 | # specified in the manifest itself. | 321 | # specified in the manifest itself. |
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, |