diff options
Diffstat (limited to 'repoNew.go')
| -rw-r--r-- | repoNew.go | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -3,19 +3,22 @@ package forgepb import ( "fmt" "os/user" + "path/filepath" "strings" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) -func (f *Forge) NewGoPathRepo(gopath string) (*gitpb.Repo, error) { - repo, err := f.Repos.NewGoPath(f.GetGoSrc(), gopath, "") +func (f *Forge) NewGoRepo(gopath string, url string) (*gitpb.Repo, error) { + fullpath := filepath.Join(f.GetGoSrc(), gopath) + repo, err := f.Repos.NewGoRepo(fullpath, gopath) if err != nil { return nil, err } + repo.URL = url f.VerifyBranchNames(repo) - repo.ParseGoSum() + repo.Reload() return repo, nil } |
