Sha256: 470e7c99d48077bc95ad40e7c0e2e96ded566c3d6c3695fc72d8ba2a5ecb5cd2
Contents?: true
Size: 421 Bytes
Versions: 30
Compression:
Stored size: 421 Bytes
Contents
# windows command line doesn't like single quotes module Mercurial class Shell def self.interpolate_arguments(cmd_with_args) cmd_with_args.shift.tap do |cmd| cmd.gsub!(/\?/) do if Lolcommits::Platform.platform_windows? "\"#{cmd_with_args.shift}\"" else cmd_with_args.shift.to_s.enclose_in_single_quotes end end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems