remove all the old testing things()
This commit is contained in:
parent
dc3fe4bd2e
commit
be026e8edc
3
human.go
3
human.go
|
@ -37,8 +37,7 @@ func (f *Forge) standardHeader(r *ForgeConfig) string {
|
||||||
// print a human readable table to STDOUT
|
// print a human readable table to STDOUT
|
||||||
func (f *Forge) ConfigPrintTable() {
|
func (f *Forge) ConfigPrintTable() {
|
||||||
if f == nil {
|
if f == nil {
|
||||||
log.Info("WTF forge == nil")
|
return
|
||||||
panic("WTF forge == nil")
|
|
||||||
}
|
}
|
||||||
log.Info(standardHeader())
|
log.Info(standardHeader())
|
||||||
loop := f.Config.SortByGoPath()
|
loop := f.Config.SortByGoPath()
|
||||||
|
|
1
init.go
1
init.go
|
@ -18,7 +18,6 @@ func Init() *Forge {
|
||||||
goSrcDir, err := f.findGoSrc()
|
goSrcDir, err := f.findGoSrc()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn("forge init() findGoSrc()", err)
|
log.Warn("forge init() findGoSrc()", err)
|
||||||
panic("forge init() findGoSrc()")
|
|
||||||
}
|
}
|
||||||
os.Setenv("FORGE_GOSRC", goSrcDir)
|
os.Setenv("FORGE_GOSRC", goSrcDir)
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,7 +220,7 @@ func cloneActual(newdir, basedir, giturl string) error {
|
||||||
}
|
}
|
||||||
// git clone didn't really work but did make a directory
|
// git clone didn't really work but did make a directory
|
||||||
log.Info("fullpath is probably empty", fullpath)
|
log.Info("fullpath is probably empty", fullpath)
|
||||||
panic("crapnuts. rmdir fullpath here?")
|
return errors.New("crapnuts. rmdir fullpath here? " + fullpath)
|
||||||
}
|
}
|
||||||
|
|
||||||
// check the server for the current go path to git url mapping
|
// check the server for the current go path to git url mapping
|
||||||
|
|
|
@ -4,14 +4,14 @@ import (
|
||||||
"os/user"
|
"os/user"
|
||||||
|
|
||||||
"go.wit.com/lib/protobuf/gitpb"
|
"go.wit.com/lib/protobuf/gitpb"
|
||||||
"go.wit.com/log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
/*
|
||||||
func (f *Forge) NewGoPath(gopath string) (*gitpb.Repo, error) {
|
func (f *Forge) NewGoPath(gopath string) (*gitpb.Repo, error) {
|
||||||
newr, err := f.Repos.NewGoPath(f.goSrc, gopath)
|
newr, err := f.Repos.NewGoPath(f.goSrc, gopath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Log(FORGEPBWARN, "init failed", err)
|
log.Log(FORGEPBWARN, "init failed", err)
|
||||||
panic("crapnuts")
|
return nil, err
|
||||||
}
|
}
|
||||||
log.Info("init worked for", newr.GoPath)
|
log.Info("init worked for", newr.GoPath)
|
||||||
// try to guess what the 'master' branch is
|
// try to guess what the 'master' branch is
|
||||||
|
@ -41,10 +41,9 @@ func (f *Forge) NewGoPath(gopath string) (*gitpb.Repo, error) {
|
||||||
newr.SetUserBranchName(uname + "FIXME")
|
newr.SetUserBranchName(uname + "FIXME")
|
||||||
}
|
}
|
||||||
f.Repos.ConfigSave()
|
f.Repos.ConfigSave()
|
||||||
panic("forgepb got here")
|
return newr, err
|
||||||
|
|
||||||
// return newr, err
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
func (f *Forge) VerifyBranchNames(newr *gitpb.Repo) {
|
func (f *Forge) VerifyBranchNames(newr *gitpb.Repo) {
|
||||||
// log.Info("init worked for", newr.GoPath)
|
// log.Info("init worked for", newr.GoPath)
|
||||||
|
|
Loading…
Reference in New Issue