From 7f636b1306e821111555c9042b4cddc98b3dc666 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 11 Dec 2012 19:16:56 +0200 Subject: [PATCH] Fix project namespaces for web hooks data --- app/models/project.rb | 2 +- app/roles/push_observer.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/project.rb b/app/models/project.rb index 372b94d2..b463a72b 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -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 diff --git a/app/roles/push_observer.rb b/app/roles/push_observer.rb index 8d414642..0b3d57f4 100644 --- a/app/roles/push_observer.rb +++ b/app/roles/push_observer.rb @@ -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