The following command installs a Python package from a git repository:
$ pip install git+ssh://git@github.com/username/repo.git
Collecting git+ssh://git@github.com/username/repo.git
Cloning ssh://git@github.com/username/repo.git to /tmp/pip-req-build-8s4nci15
I'm not 100% certain, but as it takes quite long I guess it clones every commit. But for installation, I only need the latest.
Instead, I would like a shallow clone (with --depth 1
). Is that possible?