diff options
author | Phil Hughes <me@iamphill.com> | 2017-11-03 11:27:02 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-11-06 10:52:03 +0000 |
commit | e2bcb3a46fd7d29bcbd17101e9a4e8f7d0ca4746 (patch) | |
tree | dfc768f714908a21f6047b02e2c1f28a67606162 /app/controllers/projects/refs_controller.rb | |
parent | 4119e92be5a83d845b8076237f7b0957fc392e7a (diff) | |
download | gitlab-ce-e2bcb3a46fd7d29bcbd17101e9a4e8f7d0ca4746.tar.gz |
fixed specs
Diffstat (limited to 'app/controllers/projects/refs_controller.rb')
-rw-r--r-- | app/controllers/projects/refs_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/refs_controller.rb b/app/controllers/projects/refs_controller.rb index ff79f88afc3..82f7ccb6afa 100644 --- a/app/controllers/projects/refs_controller.rb +++ b/app/controllers/projects/refs_controller.rb @@ -60,7 +60,7 @@ class Projects::RefsController < Projects::ApplicationController file_name: content.name, commit: last_commit, type: content.type, - commit_path: project_commit_path(@project, last_commit) + commit_path: (project_commit_path(@project, last_commit) unless last_commit.nil?) } end end |