It’s not the limitation of git itself afaik b/c when I set the remote to ssh directly to the Phabricator instance (e.g.
git remote add raw_phab ssh://yannayl@phab:/var/repo/4) and not via the Phabricator proxy (
ssh://phab-vcs-user@phab:2222/diffusion/TST/test.git) - everything works as expected.
Also, as said, fetch doesn’t work, the git upload-pack proxy yields the following error:
Exception: Unexpected "git upload-pack" protocol frame: expected "<hash> <name>\n", got "shallow ae4a9579cedd2609cc37028cf1aaaaaaaaaaa
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Git’s limitation is that both branches must have a common ancestor (there were further restrictions in older git versions but they were removed, see https://stackoverflow.com/questions/6900103/why-cant-i-push-from-a-shallow-clone/6900428#6900428 for example).
The amount of storage needed for this repo is enormous and the time to clone it will be days. Also, I am not sure about the resources Phabricator will need to process it (does it process the history of the repo?).