summaryrefslogtreecommitdiff
path: root/repoNew.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 00:00:27 -0600
committerJeff Carr <[email protected]>2024-12-17 00:00:27 -0600
commit075fce61e541eec6ccdc02c9de3bee14e9e486cf (patch)
treea715cc0cc960c3d91d0be96e3006c6e8daf5597e /repoNew.go
parenta9286af8fd3f912aa357e3ebe67af09f42b8d534 (diff)
start cleaning up git interactions
Diffstat (limited to 'repoNew.go')
-rw-r--r--repoNew.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/repoNew.go b/repoNew.go
index 772e9b2..69a2338 100644
--- a/repoNew.go
+++ b/repoNew.go
@@ -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
}