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
|
||||
func (f *Forge) ConfigPrintTable() {
|
||||
if f == nil {
|
||||
log.Info("WTF forge == nil")
|
||||
panic("WTF forge == nil")
|
||||
return
|
||||
}
|
||||
log.Info(standardHeader())
|
||||
loop := f.Config.SortByGoPath()
|
||||
|
|
1
init.go
1
init.go
|
@ -18,7 +18,6 @@ func Init() *Forge {
|
|||
goSrcDir, err := f.findGoSrc()
|
||||
if err != nil {
|
||||
log.Warn("forge init() findGoSrc()", err)
|
||||
panic("forge init() findGoSrc()")
|
||||
}
|
||||
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
|
||||
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
|
||||
|
|
|
@ -4,14 +4,14 @@ import (
|
|||
"os/user"
|
||||
|
||||
"go.wit.com/lib/protobuf/gitpb"
|
||||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
/*
|
||||
func (f *Forge) NewGoPath(gopath string) (*gitpb.Repo, error) {
|
||||
newr, err := f.Repos.NewGoPath(f.goSrc, gopath)
|
||||
if err != nil {
|
||||
log.Log(FORGEPBWARN, "init failed", err)
|
||||
panic("crapnuts")
|
||||
return nil, err
|
||||
}
|
||||
log.Info("init worked for", newr.GoPath)
|
||||
// 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")
|
||||
}
|
||||
f.Repos.ConfigSave()
|
||||
panic("forgepb got here")
|
||||
|
||||
// return newr, err
|
||||
return newr, err
|
||||
}
|
||||
*/
|
||||
|
||||
func (f *Forge) VerifyBranchNames(newr *gitpb.Repo) {
|
||||
// log.Info("init worked for", newr.GoPath)
|
||||
|
|
Loading…
Reference in New Issue