Gitaly PostUploadPack does not support shallow clone
To reproduce: use GDK master, clone a repo with git clone --depth=1
. You need to set GITALY_POST_UPLOAD_PACK=1
on Unicorn in the Procfile.
$ git clone --bare --depth=1 http://localhost:3000/foo/bar.git
Cloning into bare repository 'bar.git'...
fatal: protocol error: bad line length character: Inte
We cannot turn on this RPC in production without proper support for shallow clone.
cc @ahmadsherif