Fix project namespaces for web hooks data

This commit is contained in:
Dmitriy Zaporozhets 2012-12-11 19:16:56 +02:00
parent 59a86e4229
commit 7f636b1306
2 changed files with 2 additions and 2 deletions

View file

@ -192,7 +192,7 @@ class Project < ActiveRecord::Base
end
def web_url
[Gitlab.config.url, path].join("/")
[Gitlab.config.url, path_with_namespace].join("/")
end
def common_notes

View file

@ -114,7 +114,7 @@ module PushObserver
id: commit.id,
message: commit.safe_message,
timestamp: commit.date.xmlschema,
url: "#{Gitlab.config.url}/#{path}/commit/#{commit.id}",
url: "#{Gitlab.config.url}/#{path_with_namespace}/commit/#{commit.id}",
author: {
name: commit.author_name,
email: commit.author_email