From 95c375dcebdf577dc2d247cbd56a39e336acf163 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 7 Aug 2014 11:23:12 -0700 Subject: [PATCH 1/2] Update hook.go added logging when post-commit hook received --- server/handler/hook.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/handler/hook.go b/server/handler/hook.go index 6591b5c9..aec90bf2 100644 --- a/server/handler/hook.go +++ b/server/handler/hook.go @@ -1,6 +1,7 @@ package handler import ( + "log" "net/http" "strings" @@ -28,6 +29,7 @@ func NewHookHandler(users database.UserManager, repos database.RepoManager, comm // GET /hook/:host func (h *HookHandler) PostHook(w http.ResponseWriter, r *http.Request) error { host := r.FormValue(":host") + log.Println("received post-commit hook.") remoteServer, err := h.remotes.FindType(host) if err != nil { From 10e493ba1e95174bb7d024ed16ce33234c646abd Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 7 Aug 2014 12:30:19 -0700 Subject: [PATCH 2/2] Update filters.js fixed issue w/ github enterprise and not display correct URL path --- server/app/scripts/filters/filters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app/scripts/filters/filters.js b/server/app/scripts/filters/filters.js index c5c3b8d6..35f2442b 100644 --- a/server/app/scripts/filters/filters.js +++ b/server/app/scripts/filters/filters.js @@ -33,7 +33,7 @@ angular.module('app').filter('fullName', function() { angular.module('app').filter('fullPath', function() { return function(repo) { if (repo == undefined) { return ""; } - return repo.remote+"/"+repo.owner+"/"+repo.name; + return repo.host+"/"+repo.owner+"/"+repo.name; } }); @@ -104,4 +104,4 @@ angular.module('app').filter('unique', function() { } return uniqueList; }; -}); \ No newline at end of file +});