##// END OF EJS Templates
scm: git: switch "-c core.quotepath=false" in git version above 1.7.2 or not (#5251)....
Toshi MARUYAMA -
r4949:16be7f2e3009
parent child
Show More
@@ -337,7 +337,10 module Redmine
337
337
338 def scm_cmd(*args, &block)
338 def scm_cmd(*args, &block)
339 repo_path = root_url || url
339 repo_path = root_url || url
340 full_args = [GIT_BIN, '--git-dir', repo_path, '-c', 'core.quotepath=false']
340 full_args = [GIT_BIN, '--git-dir', repo_path]
341 if self.class.client_version_above?([1, 7, 2])
342 full_args << '-c' << 'core.quotepath=false'
343 end
341 full_args += args
344 full_args += args
342 ret = shellout(full_args.map { |e| shell_quote e.to_s }.join(' '), &block)
345 ret = shellout(full_args.map { |e| shell_quote e.to_s }.join(' '), &block)
343 if $? && $?.exitstatus != 0
346 if $? && $?.exitstatus != 0
General Comments 0
You need to be logged in to leave comments. Login now