mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
30457ecd02removed the `--mirror` from initial clones, but did not add back `--bare`, which `--mirror` implies. This leads to `/srv/zulip.git` having a working tree in it, with a `/srv/zulip.git/.git` directory. This is mostly harmless, and since the bug was recent, not worth introducing additional complexity into the upgrade process to handle. Calling `git clone --bare`, however, would clone the refs into `refs/heads/`, not the `refs/remotes/origin/` we want. Instead, use `git init --bare`, followed by `git remote add origin`. The remote will be fetched by the usual `git fetch --all --prune` which is below. (cherry picked from commit5bdc4b3562)
This directory contains scripts that:
-
Generally do not require access to Django or the database (those are "management commands"), and thus are suitable to run operationally.
-
Are useful for managing a production deployment of Zulip (many are also used in a Zulip development environment, though development-only scripts live in
tools/).
For more details, see https://zulip.readthedocs.io/en/latest/overview/directory-structure.html.