FindByName()

This commit is contained in:
Jeff Carr 2024-11-22 21:04:56 -06:00
parent 5aecd7c2db
commit 0c44e7ec88
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
repoName := r.URL.Query().Get("repo") repoName := r.URL.Query().Get("repo")
if repoName != "" { if repoName != "" {
// git pull (or go-clone of it doesn't exist) // 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 { if repo == nil {
cmd := []string{"go-clone", repoName} cmd := []string{"go-clone", repoName}
header := repo.StandardHeader() header := repo.StandardHeader()

View File

@ -24,7 +24,7 @@ func simpleRelease(w http.ResponseWriter, r *http.Request) {
return return
} }
// git pull (or go-clone of it doesn't exist) // 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 { if repo == nil {
log.Info("repo unknown: " + repoName) log.Info("repo unknown: " + repoName)
return return