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

View File

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