summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@gitlab.com>2015-03-13 16:50:53 +0000
committerDmitriy Zaporozhets <dzaporozhets@gitlab.com>2015-03-13 16:50:53 +0000
commit309f588d563d581aaf13739c4e97f6c349afbaf4 (patch)
tree7b51040dc46066fe344efc04b599677b0768daef /app/controllers
parentb8f5e23f270df85b32baa1fd6912b6a5eb334755 (diff)
parent7f4cffd88b393a55f6462ce870807c7afd7ca98a (diff)
downloadgitlab-ce-309f588d563d581aaf13739c4e97f6c349afbaf4.tar.gz
Merge branch 'fix-encoding' into 'master'
Minor cleanup around UTF-8 encoding. Minor cleanup to be merged after https://dev.gitlab.org/gitlab/gitlab_git/merge_requests/24 is merged in. See merge request !1642
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/blame_controller.rb4
-rw-r--r--app/controllers/projects/graphs_controller.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/projects/blame_controller.rb b/app/controllers/projects/blame_controller.rb
index 489a6ae5666..a87b8270a22 100644
--- a/app/controllers/projects/blame_controller.rb
+++ b/app/controllers/projects/blame_controller.rb
@@ -7,7 +7,7 @@ class Projects::BlameController < Projects::ApplicationController
before_filter :authorize_download_code!
def show
- @blob = @repository.blob_at(@commit.id, @path)
- @blame = Gitlab::Git::Blame.new(project.repository, @commit.id, @path)
+ @blame = Gitlab::Git::Blame.new(@repository, @commit.id, @path)
+ @blob = @blame.blob
end
end
diff --git a/app/controllers/projects/graphs_controller.rb b/app/controllers/projects/graphs_controller.rb
index 752474b4a4c..6e54af356e0 100644
--- a/app/controllers/projects/graphs_controller.rb
+++ b/app/controllers/projects/graphs_controller.rb
@@ -28,8 +28,8 @@ class Projects::GraphsController < Projects::ApplicationController
@commits.each do |commit|
@log << {
- author_name: commit.author_name.force_encoding('UTF-8'),
- author_email: commit.author_email.force_encoding('UTF-8'),
+ author_name: commit.author_name,
+ author_email: commit.author_email,
date: commit.committed_date.strftime("%Y-%m-%d")
}
end