From 0c44e7ec88a1ef2c4c629305412479f24a6b8b36 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 22 Nov 2024 21:04:56 -0600 Subject: [PATCH] FindByName() --- http.go | 2 +- simpleRelease.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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