Skip to main content

push_command

Function push_command 

Source
pub fn push_command(git: &PushGit, arguments: &[OsString]) -> Command
Expand description

What: Build a real Git push command: the hook of the Git LFS upload comes first when the coordinator has one. Why: Auto-push and its reconcile pushes publish refs, so they must upload the LFS objects the pushed commits point to exactly as a typed git push does; the hook runs inside Git, which gives it the remote, the URL and the update lines, and a failed upload stops the push before any ref changes.

In TS you’d write (pseudocode):

gitCommand(git, [...lfsHookArguments(git.lfsPrePush), ...pushArguments])