improvements in gitpb

This commit is contained in:
Jeff Carr 2024-12-17 06:34:54 -06:00
parent 27afe91493
commit 6127146a94
2 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ func checkoutDevel() bool {
count += 1
// don't switch branches on readonly repos
if me.forge.Config.IsReadOnly(repo.GoPath()) {
if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
continue
}
if repo.Status.CheckoutDevel() {
@ -89,7 +89,7 @@ func rillGitPull() {
loop := me.repos.View.ReposSortByName()
for loop.Scan() {
repo := loop.Repo()
gopaths = append(gopaths, repo.GoPath())
gopaths = append(gopaths, repo.GetGoPath())
}
// Convert a slice of user IDs into a channel
@ -104,7 +104,7 @@ func rillGitPull() {
// Activate users.
// Concurrency = 10
err := rill.ForEach(users, 10, func(repo *repolist.RepoRow) error {
fmt.Printf("Repo found : %s\n", repo.GoPath())
fmt.Printf("Repo found : %s\n", repo.GetGoPath())
repo.Run([]string{"git", "pull"})
return nil
})

View File

@ -90,7 +90,7 @@ func globalResetOptions(box *gui.Node) {
loop := me.repos.View.ReposSortByName()
for loop.Scan() {
repo := loop.Repo()
if repo.GoPath() == "go.wit.com/apps/autotypist" {
if repo.GetGoPath() == "go.wit.com/apps/autotypist" {
continue
}
if repo.Status.CheckDirty() {