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")
|
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()
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue