diff options
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 | ||