Git archive support for Diffusion

This afternoon I tried to export a Phabricator-hosted Git repository using git archive --remote. Sadly, the necessary server-side command (git upload-archive) isn’t supported in Diffusion:

phabricator-ssh-exec: Invalid command.
fatal: The remote end hung up unexpectedly

I noticed that someone offered a (surprisngly small) patch that adds this functionality in 2014. Is there any chance it could be reviewed and merged if found to be acceptable, please? :slightly_smiling_face:

Unsurprisingly the codebase has evolved since 2014 so the patch linked above no longer works. I’ve written and am currently testing a new patch based on src/applications/diffusion/ssh/DiffusionGitUploadPackSSHWorkflow.php that does the same thing. I’d be happy to contribute it upstream when I’ve verified that it works.

There’s no current customer interest in this feature, so it isn’t a good fit for the upstream at the present time.