FindByName()
This commit is contained in:
parent
5aecd7c2db
commit
0c44e7ec88
2
http.go
2
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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue