| 31 | } |
| 32 | |
| 33 | func FormatArgs(cmd string, args []string, needShell bool) (string, []string) { |
| 34 | if !needShell { |
| 35 | return cmd, args |
| 36 | } |
| 37 | |
| 38 | return subprocess.FormatForShellQuotedArgs(cmd, args) |
| 39 | } |
| 40 | |
| 41 | func GetLFSExeAndArgs(osEnv config.Environment, gitEnv config.Environment, meta *SSHMetadata, command, operation string, multiplexDesired bool, multiplexControlPath string) (exe string, args []string, multiplexing bool, controlPath string) { |
| 42 | exe, args, needShell, multiplexing, controlPath := GetExeAndArgs(osEnv, gitEnv, meta, multiplexDesired, multiplexControlPath) |