Commit 619c81b4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix Commit stats and diff encoding issues

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 3a106cbc
...@@ -32,7 +32,7 @@ gem 'omniauth-shibboleth' ...@@ -32,7 +32,7 @@ gem 'omniauth-shibboleth'
# Extracting information from a git repository # Extracting information from a git repository
# Provide access to Gitlab::Git library # Provide access to Gitlab::Git library
# gem "gitlab_git", path: '../../gitlab_git' # gem "gitlab_git", path: '../../gitlab_git'
gem "gitlab_git", git: 'https://gitlab.com/gitlab-org/gitlab_git.git', ref: '187ff05aef6fc5390a2d666f35f84de0db9777b7' gem "gitlab_git", git: 'https://gitlab.com/gitlab-org/gitlab_git.git', ref: 'b53b948a9248ea3a4b7f2bd6c7f9938fbd5e952b'
# Ruby/Rack Git Smart-HTTP Server Handler # Ruby/Rack Git Smart-HTTP Server Handler
gem 'gitlab-grack', '~> 2.0.0.pre', require: 'grack' gem 'gitlab-grack', '~> 2.0.0.pre', require: 'grack'
......
GIT GIT
remote: https://gitlab.com/gitlab-org/gitlab_git.git remote: https://gitlab.com/gitlab-org/gitlab_git.git
revision: 187ff05aef6fc5390a2d666f35f84de0db9777b7 revision: b53b948a9248ea3a4b7f2bd6c7f9938fbd5e952b
ref: 187ff05aef6fc5390a2d666f35f84de0db9777b7 ref: b53b948a9248ea3a4b7f2bd6c7f9938fbd5e952b
specs: specs:
gitlab_git (7.0.0.pre) gitlab_git (7.0.0.pre)
activesupport (~> 4.0) activesupport (~> 4.0)
......
...@@ -19,13 +19,7 @@ class Projects::CommitController < Projects::ApplicationController ...@@ -19,13 +19,7 @@ class Projects::CommitController < Projects::ApplicationController
[] []
end end
begin
@diffs = @commit.diffs @diffs = @commit.diffs
rescue Grit::Git::GitTimeout
@diffs = []
@diff_timeout = true
end
@note = project.build_commit_note(commit) @note = project.build_commit_note(commit)
@notes_count = project.notes.for_commit_id(commit.id).count @notes_count = project.notes.for_commit_id(commit.id).count
@notes = project.notes.for_commit_id(@commit.id).not_inline.fresh @notes = project.notes.for_commit_id(@commit.id).not_inline.fresh
......
...@@ -5,7 +5,7 @@ class Projects::RepositoriesController < Projects::ApplicationController ...@@ -5,7 +5,7 @@ class Projects::RepositoriesController < Projects::ApplicationController
before_filter :require_non_empty_project before_filter :require_non_empty_project
def stats def stats
@stats = Gitlab::Git::Stats.new(@repository.raw, @repository.root_ref) @stats = Gitlab::Git::Stats.new(@repository.raw_repository, @repository.root_ref)
@graph = @stats.graph @graph = @stats.graph
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment