Search
Project
General
Profile
Home
Projects
Help
Sign in
Register
Search
:
Redmine
All Projects
Redmine
Overview
Download
Activity
Roadmap
Issues
News
Wiki
Plugins
Forums
Repository
Download (1.24 KB)
Patch #236
ยป patch.txt
Choi Jong Yoon
, 2008-02-03 11:01
Index: lib/redmine/scm/adapters/cvs_adapter.rb
===================================================================
--- lib/redmine/scm/adapters/cvs_adapter.rb (revision 559)
+++ lib/redmine/scm/adapters/cvs_adapter.rb (working copy)
@@ -142,7 +142,7 @@
if state=="entry_start"
branch_map=Hash.new
- if /^RCS file: #{Regexp.escape(root_url)}\/#{Regexp.escape(path_with_project)}(.+),v$/ =~ line
+ if /^RCS file: #{Regexp.escape(root_url.slice(root_url.index('/')..-1))}\/#{Regexp.escape(path_with_project)}(.+),v$/ =~ line
entry_path = normalize_cvs_path($1)
entry_name = normalize_path(File.basename($1))
logger.debug("Path #{entry_path} <=> Name #{entry_name}")
@@ -188,7 +188,7 @@
yield Revision.new({
:time => date,
:author => author,
- :message=>commit_log.chomp,
+ :message=> Iconv.new('UTF-8',Setting.repositories_encodings).iconv(commit_log.chomp),
:paths => [{
:revision => revision,
:branch=> revBranch,
(1-1/1)
Loading...