diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-13 11:59:52 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-27 12:23:26 -0500 |
commit | 7f625f06d333cbe3846081924a3e7016b2846ae0 (patch) | |
tree | 5b70dc5cec031869ddb84f7bceb2c0aedb3dfaf9 /app/models/commit.rb | |
parent | 00e4ec55c3b8757e6d5fb8bf3176dd7e20966b3a (diff) | |
download | gitlab-ce-7f625f06d333cbe3846081924a3e7016b2846ae0.tar.gz |
Pass project to Blob
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 8b8b3f00202..bb4cb8efd15 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -316,7 +316,7 @@ class Commit def uri_type(path) entry = @raw.tree.path(path) if entry[:type] == :blob - blob = ::Blob.decorate(Gitlab::Git::Blob.new(name: entry[:name])) + blob = ::Blob.decorate(Gitlab::Git::Blob.new(name: entry[:name]), @project) blob.image? || blob.video? ? :raw : :blob else entry[:type] |