Skip to content
Snippets Groups Projects
Commit 24566954 authored by Douwe Maan's avatar Douwe Maan
Browse files

Fix errors.

parent 4dd2f881
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -272,7 +272,7 @@ class Note < ActiveRecord::Base
# cross-project references. For same-project references, return the
# unmodified GFM reference.
def mentioner_gfm_ref(noteable, mentioner, mentioner_project = mentioner.project)
if mentioner.is_a?(Commit) && project.nil?
if mentioner.is_a?(Commit) && mentioner_project.nil?
return mentioner.gfm_reference.sub('commit ', 'commit %')
end
Loading
Loading
@@ -283,7 +283,7 @@ class Note < ActiveRecord::Base
# projects are not the same, add the mentioning project's path to the
# returned value.
def full_gfm_reference(mentioning_project, noteable_project, mentioner)
if mentioning_project.id == noteable_project
if mentioning_project == noteable_project
mentioner.gfm_reference
else
if mentioner.is_a?(Commit)
Loading
Loading
Loading
Loading
@@ -31,7 +31,6 @@ module Gitlab
# For performance purposes maximum 20 latest commits
# will be passed as post receive hook data.
commit_attrs = commits_limited.map(&:hook_attrs)
end
 
type = Gitlab::Git.tag_ref?(ref) ? "tag_push" : "push"
# Hash to be passed as post_receive_data
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment