func Run(command string, args ...string) error { cmd := cmd.New("git") for _, v := range GlobalFlags { cmd.WithArg(v) } cmd.WithArg(command) for _, a := range args { cmd.WithArg(a) } return cmd.Run() }
func Run(args ...string) error { cmd := gitCmd(args...) return cmd.Run() }