diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2016-11-10 18:24:12 +0100 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2016-11-10 18:24:12 +0100 |
commit | 3fa265d19547669c60788e38e389fa12bb119235 (patch) | |
tree | e796b5286824892269c836cb75ce11a479a6472a /lib/gitlab/diff/file.rb | |
parent | e3dcd83d4a4b75dc050592ea008dc34ecbe0aa49 (diff) | |
download | gitlab-ce-3fa265d19547669c60788e38e389fa12bb119235.tar.gz |
Fix expanding a collapsed diff when converting a symlink to a regular fileadam-fix-collapsed-diff-symlink-file-conversion
In this case comparing old_path and new_path is not enough because there
are two entires that match.
Diffstat (limited to 'lib/gitlab/diff/file.rb')
-rw-r--r-- | lib/gitlab/diff/file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/diff/file.rb b/lib/gitlab/diff/file.rb index ce85e5e0123..5110bfbf898 100644 --- a/lib/gitlab/diff/file.rb +++ b/lib/gitlab/diff/file.rb @@ -126,7 +126,7 @@ module Gitlab repository.blob_at(commit.id, file_path) end - def cache_key + def file_identifier "#{file_path}-#{new_file}-#{deleted_file}-#{renamed_file}" end end |