Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PullCommand ¶ added in v14.28.0
type PullCommand struct { Config *config.Config ReadWriter *readwriter.ReadWriter Args *commandargs.Shell Response *accessverifier.Response }
type PushCommand ¶
type PushCommand struct { Config *config.Config ReadWriter *readwriter.ReadWriter Response *accessverifier.Response Args *commandargs.Shell }
func (*PushCommand) Execute ¶
func (c *PushCommand) Execute(ctx context.Context) error
See Uploading Data > HTTP(S) section at: https://git-scm.com/book/en/v2/Git-Internals-Transfer-Protocols
1. Perform /info/refs?service=git-receive-pack request 2. Remove the header to make it consumable by SSH protocol 3. Send the result to the user via SSH (writeToStdout) 4. Read the send-pack data provided by user via SSH (stdinReader) 5. Perform /git-receive-pack request and send this data 6. Return the output to the user
Click to show internal directories.
Click to hide internal directories.