Add Notes About GIT_CLONE_PROTECTION_ACTIVE

This commit is contained in:
CuriousTommy 2024-05-19 11:48:39 -07:00 committed by GitHub
parent 679e4c07f6
commit 67c527db0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,10 +116,12 @@ Of course, if you want to run GUI applications, you'll also need a desktop envir
Darling uses git-lfs. Set this up if needed with [official instructions](https://github.com/git-lfs/git-lfs/wiki/Installation).
Newer versions of git will fail to clone Darling unless `GIT_CLONE_PROTECTION_ACTIVE` is set to false. This is due to how git-lfs relies on the post-checkout hook.
Darling makes extensive use of Git submodules, therefore you cannot use a plain `git clone`. Make a clone like this:
```bash
git clone --recursive https://github.com/darlinghq/darling.git
GIT_CLONE_PROTECTION_ACTIVE=false git clone --recursive https://github.com/darlinghq/darling.git
```
**Attention:** The source tree requires up to 5 GB of disk space!