##// END OF EJS Templates
scm: git: use core.quotepath = true to run git command for database safety (#5251)....
Toshi MARUYAMA -
r4908:30063d14c17b
parent child
Show More
@@ -319,7 +319,6 module Redmine
319
319
320 def scm_cmd(*args, &block)
320 def scm_cmd(*args, &block)
321 repo_path = root_url || url
321 repo_path = root_url || url
322 # full_args = [GIT_BIN, '--git-dir', repo_path, '-c', 'core.quotepath=false']
323 full_args = [GIT_BIN, '--git-dir', repo_path, '-c', 'core.quotepath=true']
322 full_args = [GIT_BIN, '--git-dir', repo_path, '-c', 'core.quotepath=true']
324 full_args += args
323 full_args += args
325 ret = shellout(full_args.map { |e| shell_quote e.to_s }.join(' '), &block)
324 ret = shellout(full_args.map { |e| shell_quote e.to_s }.join(' '), &block)
General Comments 0
You need to be logged in to leave comments. Login now