diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-07 13:14:44 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-07 13:14:44 +0000 |
commit | 90d4447bd3122ace1655e7a8ef01eb6ef59e2f79 (patch) | |
tree | a6fcce72eb4d1f233852cd1d50b67e16cb65a87b | |
parent | fce4dcb5a63c8683cd6e471312ae31e981aabeda (diff) | |
download | redmine-90d4447bd3122ace1655e7a8ef01eb6ef59e2f79.tar.gz redmine-90d4447bd3122ace1655e7a8ef01eb6ef59e2f79.zip |
scm: git: change core.quotepath = true temporarily to run git command (#5251).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5025 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/redmine/scm/adapters/git_adapter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index fbc2f2bf5..23598a9f4 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -319,7 +319,8 @@ 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=false'] + full_args = [GIT_BIN, '--git-dir', repo_path, '-c', 'core.quotepath=true'] full_args += args ret = shellout(full_args.map { |e| shell_quote e.to_s }.join(' '), &block) if $? && $?.exitstatus != 0 |