diff options
author | Greg Edelston <gredelston@google.com> | 2024-02-20 10:07:53 -0700 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-02-20 19:55:15 +0000 |
commit | fec8cd6704b8ca7e01ed2de9d8757a2afd35188b (patch) | |
tree | ab7c5f6a6044c09787e0059ed193b0cd79bb4417 /subcmds/sync.py | |
parent | b8139bdcf87540fbe88a8b9180c052f5cc3a91b7 (diff) | |
download | git-repo-fec8cd6704b8ca7e01ed2de9d8757a2afd35188b.tar.gz |
subcmds: sync: Remove deprecated _AUTO_GC
Opportunistic cleanup. It looks like this deprecated feature was slated
for deletion nearly a year ago.
Bug: None
Test: ./run_tests
Change-Id: I0bd0c0e6acbd1eaee1c0b4945c79038257d22f44
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/410198
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Greg Edelston <gredelston@google.com>
Tested-by: Greg Edelston <gredelston@google.com>
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 6004e306..bf1171dd 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -82,11 +82,6 @@ from wrapper import Wrapper | |||
82 | 82 | ||
83 | _ONE_DAY_S = 24 * 60 * 60 | 83 | _ONE_DAY_S = 24 * 60 * 60 |
84 | 84 | ||
85 | # Env var to implicitly turn auto-gc back on. This was added to allow a user to | ||
86 | # revert a change in default behavior in v2.29.9. Remove after 2023-04-01. | ||
87 | _REPO_AUTO_GC = "REPO_AUTO_GC" | ||
88 | _AUTO_GC = os.environ.get(_REPO_AUTO_GC) == "1" | ||
89 | |||
90 | _REPO_ALLOW_SHALLOW = os.environ.get("REPO_ALLOW_SHALLOW") | 85 | _REPO_ALLOW_SHALLOW = os.environ.get("REPO_ALLOW_SHALLOW") |
91 | 86 | ||
92 | logger = RepoLogger(__file__) | 87 | logger = RepoLogger(__file__) |
@@ -1575,16 +1570,6 @@ later is required to fix a server side protocol bug. | |||
1575 | if opt.prune is None: | 1570 | if opt.prune is None: |
1576 | opt.prune = True | 1571 | opt.prune = True |
1577 | 1572 | ||
1578 | if opt.auto_gc is None and _AUTO_GC: | ||
1579 | logger.error( | ||
1580 | "Will run `git gc --auto` because %s is set. %s is deprecated " | ||
1581 | "and will be removed in a future release. Use `--auto-gc` " | ||
1582 | "instead.", | ||
1583 | _REPO_AUTO_GC, | ||
1584 | _REPO_AUTO_GC, | ||
1585 | ) | ||
1586 | opt.auto_gc = True | ||
1587 | |||
1588 | def _ValidateOptionsWithManifest(self, opt, mp): | 1573 | def _ValidateOptionsWithManifest(self, opt, mp): |
1589 | """Like ValidateOptions, but after we've updated the manifest. | 1574 | """Like ValidateOptions, but after we've updated the manifest. |
1590 | 1575 | ||