stable

Clone or download

Read-only

Introduce git-lfs-authenticate command

With this first commit only the structure of the command is deployed. It handles all error use case related to givent paramters, in nominal case nothing is done but when something is wrong with the paramters or environment an error is raised How to test ? Deploy the gitolite command: ln -s /usr/share/tuleap/plugins/gitlfs/bin/git-lfs-authenticate /usr/share/gitolite3/commands/git-lfs-authenticate install -o root -g root -m 0440 /usr/share/tuleap/plugins/gitlfs/etc/sudoers.d/tuleap_gitlfs_authenticate /etc/sudoers.d/tuleap_gitlfs_authenticate sed -i -e "/# These are the commands enabled by default/a 'git-lfs-authenticate'," /var/lib/gitolite/.gitolite.rc Then you can run manually the command: ssh gitolite@tuleap-web.tuleap-aio-dev.docker git-lfs-authenticate mozilla/big.git download Part of story #12324 use git-lfs with ssh transfer Change-Id: Ifd4d2526aa142d4c03b48d57231df460137e84e4

Modified Files

Name
A plugins/gitlfs/bin/git-lfs-authenticate +3 −0 Go to diff View file
A plugins/gitlfs/bin/git-lfs-authenticate.php +47 −0 Go to diff View file
A plugins/gitlfs/etc/sudoers.d/tuleap_gitlfs_authenticate +3 −0 Go to diff View file
A plugins/gitlfs/include/SSHAuthenticate/InvalidCommandException.php +27 −0 Go to diff View file
A plugins/gitlfs/include/SSHAuthenticate/SSHAuthenticate.php +89 −0 Go to diff View file
A plugins/gitlfs/phpunit/SSHAuthenticate/SSHAuthenticateTest.php +209 −0 Go to diff View file