From f66b53577f133a3bbc87c6ae6b1b890e64c7a2fc Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 16 Feb 2011 01:14:10 +0000 Subject: [PATCH] scm: mercurial: change "--cwd" option to "-R" for running "hg" (#4455). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4839 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/mercurial_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index 53ecd4ee1..17afa674f 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -232,7 +232,7 @@ module Redmine # Runs 'hg' command with the given args def hg(*args, &block) - full_args = [HG_BIN, '--cwd', url, '--encoding', 'utf-8'] + full_args = [HG_BIN, '-R', root_url, '--encoding', 'utf-8'] full_args << '--config' << "extensions.redminehelper=#{HG_HELPER_EXT}" full_args << '--config' << 'diff.git=false' full_args += args