Commit 043e265e authored by Toshi MARUYAMA's avatar Toshi MARUYAMA Committed by Eric Davis

scm: git: use core.quotepath = true to run git command for database safety (#5251).

git-svn-id: svn+ssh:// e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 32fa37f4
......@@ -319,7 +319,6 @@ module Redmine
def scm_cmd(*args, &block)
repo_path = root_url || url
# full_args = [GIT_BIN, '--git-dir', repo_path, '-c', 'core.quotepath=false']
full_args = [GIT_BIN, '--git-dir', repo_path, '-c', 'core.quotepath=true']
full_args += args
ret = shellout( { |e| shell_quote e.to_s }.join(' '), &block)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment