SSHUploadPack
Forwardsgit upload-pack to Gitaly for SSH sessions. Used when users clone or fetch repositories over SSH.
Streaming RPC: Both request and response are streamed.
Request
The repository to upload pack from. Must be present in the first message
Raw data to be copied to ‘git upload-pack’ standard input
Parameters to use with git -c (key=value pairs)
Git protocol version to use
Response
Raw data from ‘git upload-pack’ standard output (streamed)
Raw data from ‘git upload-pack’ standard error (streamed)
Exit status of the command. Only returned when the command has finished
SSHUploadPackWithSidechannel
Forwardsgit upload-pack to Gitaly for SSH sessions using the sidechannel protocol. This is a more efficient implementation for large data transfers.
Request
The repository to upload pack from
Parameters to use with git -c (key=value pairs)
Git protocol version to use
Response
(empty)
Empty response. Data is transferred via sidechannel
SSHReceivePack
Forwardsgit receive-pack to Gitaly for SSH sessions. Used when users push to repositories over SSH.
Streaming RPC: Both request and response are streamed.
Request
The repository to receive pack into. Must be present in the first message
Raw data to be copied to ‘git receive-pack’ standard input
GitLab user ID. Becomes GL_ID environment variable for ‘git receive-pack’
GitLab repository identifier. Becomes GL_REPOSITORY environment variable for ‘git receive-pack’
GitLab username. Becomes GL_USERNAME environment variable for ‘git receive-pack’
Git protocol version to use
Parameters to use with git -c (key=value pairs)
Response
Raw data from ‘git receive-pack’ standard output (streamed)
Raw data from ‘git receive-pack’ standard error (streamed)
Exit status of the command. Only returned when the command has finished
SSHUploadArchive
Forwardsgit upload-archive to Gitaly for SSH sessions. Used when users request repository archives over SSH.
Streaming RPC: Both request and response are streamed.
Request
The repository to upload archive from. Must be present in the first message
Raw data to be copied to ‘git upload-archive’ standard input
Response
Raw data from ‘git upload-archive’ standard output (streamed)
Raw data from ‘git upload-archive’ standard error (streamed)
Exit status of the command. Only set on the last message