[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

git.libssh.org HTTP protocol deployment


Hello!

Recently I tried to do a "shallow" clone of the libssh Git repository,
since I knew which tag I wanted and I thought I might save some
bandwidth. However, I found that the way git.libssh.org is configured,
shallow clones are not supported:

------
$ git clone --branch libssh-0.7.6 --depth=1 https://git.libssh.org/projects/libssh.git
Cloning into 'libssh'...
fatal: dumb http transport does not support shallow capabilities
------

Git offers two different HTTP protocols, which they call 'dumb' and
'smart':

https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols

The 'dumb' one is simpler and easier to deploy, but it doesn't offer
features like shallow cloning, progress updates, and is *much* slower
than the 'smart' version or the unauthenticated git:// protocol. In my
tests, cloning with the git:// protocol took 1.5 seconds, while the
'dumb' https:// clone took 217 seconds.

Would you consider deploying the 'smart' HTTP protcol on git.libssh.org?

Sincerely,
Leo

Follow-Ups:
Re: git.libssh.org HTTP protocol deploymentAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org