diff options
Diffstat (limited to 'repoNew.go')
| -rw-r--r-- | repoNew.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -9,14 +9,14 @@ import ( "regexp" "strings" - "go.wit.com/lib/ENV" "go.wit.com/lib/config" + "go.wit.com/lib/env" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) func (f *Forge) NewGoRepo(gopath string, url string) (*gitpb.Repo, error) { - fullpath := filepath.Join(ENV.Get("ReposDir"), gopath) + fullpath := filepath.Join(env.Get("ReposDir"), gopath) test := f.Repos.FindByFullPath(fullpath) if test != nil { return test, nil @@ -193,12 +193,12 @@ func (f *Forge) configUserBranchName(repo *gitpb.Repo) string { if uname != "" { return uname } - if ENV.Get("username") == "" { + if env.Get("username") == "" { // something is wrong! } // use the os.Username - uname = ENV.Get("username") + uname = env.Get("username") return uname } @@ -248,6 +248,6 @@ func (f *Forge) FindAnyPath(dir string) *gitpb.Repo { } func (f *Forge) DeleteByGoPath(gopath string) bool { - fullpath := filepath.Join(ENV.Get("ReposDir"), gopath) + fullpath := filepath.Join(env.Get("ReposDir"), gopath) return f.Repos.DeleteByFullPath(fullpath) } |
