summaryrefslogtreecommitdiffstats
path: root/app/models/repository/cvs.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-14 15:01:55 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-14 15:01:55 +0000
commitbebf8247a7f8d01040780b4f160455e958af9462 (patch)
tree36793fab24b4442093aadd637ee51f07cb072fd8 /app/models/repository/cvs.rb
parent7e5bc046d68db93a3083611178efee03602fd62b (diff)
downloadredmine-bebf8247a7f8d01040780b4f160455e958af9462.tar.gz
redmine-bebf8247a7f8d01040780b4f160455e958af9462.zip
scm: cvs: fix parsing revisions if author is not ASCII.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5455 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository/cvs.rb')
-rw-r--r--app/models/repository/cvs.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb
index 4112f3ecd..a0202f19b 100644
--- a/app/models/repository/cvs.rb
+++ b/app/models/repository/cvs.rb
@@ -137,11 +137,12 @@ class Repository::Cvs < Repository
revision.paths[0][:revision]
)
cmt = Changeset.normalize_comments(revision.message, repo_log_encoding)
+ author_utf8 = Changeset.to_utf8(revision.author, repo_log_encoding)
cs = changesets.find(
:first,
:conditions => {
:committed_on => tmp_time - time_delta .. tmp_time + time_delta,
- :committer => revision.author,
+ :committer => author_utf8,
:comments => cmt
}
)