diff --git a/http.go b/http.go index d3cb72c..27d613a 100644 --- a/http.go +++ b/http.go @@ -57,7 +57,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) { repoName := r.URL.Query().Get("repo") if repoName != "" { // git pull (or go-clone of it doesn't exist) - repo := me.repos.View.FindRepoByName(repoName) + repo := me.repos.View.FindByName(repoName) if repo == nil { cmd := []string{"go-clone", repoName} header := repo.StandardHeader() diff --git a/simpleRelease.go b/simpleRelease.go index cfd7486..75f5f45 100644 --- a/simpleRelease.go +++ b/simpleRelease.go @@ -24,7 +24,7 @@ func simpleRelease(w http.ResponseWriter, r *http.Request) { return } // git pull (or go-clone of it doesn't exist) - repo := me.repos.View.FindRepoByName(repoName) + repo := me.repos.View.FindByName(repoName) if repo == nil { log.Info("repo unknown: " + repoName) return