Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-11-03 14:27:02 +0300
committerPhil Hughes <me@iamphill.com>2017-11-06 13:52:03 +0300
commite2bcb3a46fd7d29bcbd17101e9a4e8f7d0ca4746 (patch)
treedfc768f714908a21f6047b02e2c1f28a67606162 /app/controllers/projects
parent4119e92be5a83d845b8076237f7b0957fc392e7a (diff)
fixed specs
Diffstat (limited to 'app/controllers/projects')
-rw-r--r--app/controllers/projects/refs_controller.rb2
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