Skip to content
Snippets Groups Projects
Unverified Commit b13c1469 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Rollback diff drop and set default commit id to HEAD

parent 3695ae18
Branches
Tags
1 merge request!194Make GitLab CE works with new gitlab_git
Loading
@@ -25,7 +25,7 @@ class Repository
Loading
@@ -25,7 +25,7 @@ class Repository
raw_repository.empty? raw_repository.empty?
end end
   
def commit(id = nil) def commit(id = 'HEAD')
return nil unless raw_repository return nil unless raw_repository
commit = Gitlab::Git::Commit.find(raw_repository, id) commit = Gitlab::Git::Commit.find(raw_repository, id)
commit = Commit.new(commit) if commit commit = Commit.new(commit) if commit
Loading
Loading
Loading
@@ -13,7 +13,7 @@ module Gitlab
Loading
@@ -13,7 +13,7 @@ module Gitlab
   
lines_arr = ::Gitlab::InlineDiff.processing lines lines_arr = ::Gitlab::InlineDiff.processing lines
   
lines_arr.drop(4).each do |line| lines_arr.each do |line|
raw_line = line.dup raw_line = line.dup
   
next if filename?(line) next if filename?(line)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment