diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-11-23 14:27:08 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2018-11-26 13:15:18 +0300 |
commit | 4b7e9eaacd3c5ecfb6e8e28a0d36832d1627515a (patch) | |
tree | 043d0eaea7d0d4181066e6204685e35583685509 /lib/gitlab/diff | |
parent | 5f0e4040ce7d4d0019b3340dd603cc6f67dd036d (diff) |
Treat Repository instances with the same disk path as the same hash key
Diffstat (limited to 'lib/gitlab/diff')
-rw-r--r-- | lib/gitlab/diff/diff_refs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/diff/diff_refs.rb b/lib/gitlab/diff/diff_refs.rb index d4823f60826..dc245377ccc 100644 --- a/lib/gitlab/diff/diff_refs.rb +++ b/lib/gitlab/diff/diff_refs.rb @@ -23,7 +23,7 @@ module Gitlab alias_method :eql?, :== def hash - [base_sha, start_sha, head_sha].hash + [self.class, base_sha, start_sha, head_sha].hash end # There is only one case in which we will have `start_sha` and `head_sha`, |