Commit 7f636b1306e821111555c9042b4cddc98b3dc666

Authored by Dmitriy Zaporozhets
1 parent 59a86e42

Fix project namespaces for web hooks data

app/models/project.rb
... ... @@ -192,7 +192,7 @@ class Project < ActiveRecord::Base
192 192 end
193 193  
194 194 def web_url
195   - [Gitlab.config.url, path].join("/")
  195 + [Gitlab.config.url, path_with_namespace].join("/")
196 196 end
197 197  
198 198 def common_notes
... ...
app/roles/push_observer.rb
... ... @@ -114,7 +114,7 @@ module PushObserver
114 114 id: commit.id,
115 115 message: commit.safe_message,
116 116 timestamp: commit.date.xmlschema,
117   - url: "#{Gitlab.config.url}/#{path}/commit/#{commit.id}",
  117 + url: "#{Gitlab.config.url}/#{path_with_namespace}/commit/#{commit.id}",
118 118 author: {
119 119 name: commit.author_name,
120 120 email: commit.author_email
... ...