diff options
| author | Jeff Carr <[email protected]> | 2025-10-24 18:31:45 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-24 18:31:45 -0500 |
| commit | e3f7c41f1082f132182c84961ab9fdf9666c8d79 (patch) | |
| tree | 31d9761f8d7162d4b2918fd36fc1f973304b1519 /repoNew.go | |
| parent | a2d6aac9f22bfe1060930e756a7dff86b3918f7e (diff) | |
s/ENV/env/ but ENV really is better herev0.0.189
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) } |
