mirror of https://github.com/zulip/zulip.git
clean-repo: Remove.
Unless this was working around a specific bug that has somehow persisted for eight years, this was just pointlessly defeating Python’s bytecode cache every time you started the dev server. This reverts commitsdeffda072f
,59228f7458
, andae45217671
. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
a3445dac95
commit
b54007d36c
|
@ -1,13 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# Remove .pyc files to prevent loading stale code.
|
||||
#
|
||||
# You can run it automatically on checkout:
|
||||
#
|
||||
# echo ./tools/clean-repo > .git/hooks/post-checkout
|
||||
# chmod +x .git/hooks/post-checkout
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
find . -name "*.pyc" -exec rm -f {} \;
|
||||
find . -name "__pycache__" -prune -exec rm -rf {} \;
|
|
@ -99,9 +99,6 @@ webpack_port = base_port + 3
|
|||
|
||||
os.chdir(os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
# Clean up stale .pyc files etc.
|
||||
subprocess.check_call("./tools/clean-repo")
|
||||
|
||||
if options.clear_memcached:
|
||||
subprocess.check_call("./scripts/setup/flush-memcached")
|
||||
|
||||
|
|
|
@ -46,7 +46,6 @@ echo
|
|||
|
||||
# prep
|
||||
run ./tools/check-provision $FORCEARG
|
||||
run ./tools/clean-repo
|
||||
|
||||
# ci/backend
|
||||
run ./tools/lint --groups=backend $FORCEARG
|
||||
|
|
Loading…
Reference in New Issue