class Git::CommandLine

def build_git_cmd(args)

Other tags:
    Api: - private

Returns:
  • (Array) -
def build_git_cmd(args)
  raise ArgumentError.new('The args array can not contain an array') if args.any? { |a| a.is_a?(Array) }
  [binary_path, *global_opts, *args].map { |e| e.to_s }
end