I'd like to build Blender v3.0.0 as a python module in a docker container. Generally, the process seems to be pretty straight-forward, thanks to the multitude of tutorials.
However, cloning the blender repository with
git clone https://git.blender.org/blender.git
takes a very long time. I thought that I could speed it up by making only a shallow clone of the repository using
git clone -b v3.0.0 --single-branch https://git.blender.org/blender.git or
git clone https://github.com/blender/blender.git --depth 1 --branch v3.0.0
but that gives me the following error during
Blender git repository is in detached HEAD state, must be in a branch
Is there a way around this?