summaryrefslogtreecommitdiff
path: root/getPatches.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 06:36:28 -0600
committerJeff Carr <[email protected]>2024-12-17 06:36:28 -0600
commit5d232293a002cc4b5bcb949a0e329337ab4e90b4 (patch)
treee5f7422210227239f04601b6f76f9a78ca442a60 /getPatches.go
parent1d124c7dbfdfd9bc4cb82f74b4883791c9f185b8 (diff)
lots of cleanups
Diffstat (limited to 'getPatches.go')
-rw-r--r--getPatches.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/getPatches.go b/getPatches.go
index 2fd0d36..771b582 100644
--- a/getPatches.go
+++ b/getPatches.go
@@ -30,7 +30,7 @@ func (repo *RepoRow) GetPatches(oldname string, newname string) (int, []*Patch)
log.Info("Run:", gitcmd)
r := repo.Status.Run(gitcmd)
if r.Error != nil {
- log.Info("git failed ", repo.GoPath(), "err =", r.Error)
+ log.Info("git failed ", repo.GetGoPath(), "err =", r.Error)
return 0, nil
}
@@ -97,7 +97,7 @@ func (r *RepoList) MakePatchset(setdir string) bool {
continue
}
- repodir := filepath.Join(setdir, repo.GoPath())
+ repodir := filepath.Join(setdir, repo.GetGoPath())
shell.Mkdir(repodir)
// git format-patch branch1..branch2
gitcmd := []string{"git", "format-patch", "-o", repodir, develn + ".." + usern}
@@ -105,10 +105,10 @@ func (r *RepoList) MakePatchset(setdir string) bool {
r := repo.Status.Run(gitcmd)
log.Info("output =", r.Stdout)
if r.Error == nil {
- log.Info("patches made okay for:", repo.GoPath())
+ log.Info("patches made okay for:", repo.GetGoPath())
continue
}
- log.Info("patches failed for:", repo.GoPath())
+ log.Info("patches failed for:", repo.GetGoPath())
return false
}
return true