old code
This commit is contained in:
parent
3fb30bb11b
commit
bd65b4eb45
11
http.go
11
http.go
|
@ -6,7 +6,6 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
|
||||
"go.wit.com/lib/gui/repostatus"
|
||||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
|
@ -99,16 +98,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
if route == "/listGitDirectories" {
|
||||
for i, path := range repostatus.ListGitDirectories() {
|
||||
// log.Info("addRepo()", i, path)
|
||||
path = strings.TrimPrefix(path, me.goSrcPwd.String())
|
||||
path = strings.Trim(path, "/")
|
||||
log.Info(fmt.Sprintf("paths:", i, path))
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if route == "/repo" {
|
||||
reponame := r.URL.Query().Get("repo")
|
||||
if reponame == "" {
|
||||
|
|
Loading…
Reference in New Issue