summaryrefslogtreecommitdiff
path: root/doPull.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-27 19:09:22 -0500
committerJeff Carr <[email protected]>2025-09-27 19:09:22 -0500
commit5a7a894e385f0dfdb34bb87af97ad8a02099cccf (patch)
treeb53416a71b605895634c68c8d25ce886d65569f7 /doPull.go
parentc7d406fc290a95baffebb957be783f6a4974c46a (diff)
prune branches on pullv0.25.43
Diffstat (limited to 'doPull.go')
-rw-r--r--doPull.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/doPull.go b/doPull.go
index a2b2a82..80405ff 100644
--- a/doPull.go
+++ b/doPull.go
@@ -148,6 +148,9 @@ func rillPull(repo *gitpb.Repo) error {
}
return nil
}
+ if err := repo.RunVerbose([]string{"git", "fetch", "origin", "--prune"}); err != nil {
+ return err
+ }
cur := repo.GetCurrentBranchName()
if !repo.IsBranchRemote(cur) {
if argv.Verbose {
@@ -156,11 +159,8 @@ func rillPull(repo *gitpb.Repo) error {
return nil
}
- var cmd []string
- cmd = append(cmd, "git", "pull")
- err := repo.RunVerbose(cmd)
- if err != nil {
- log.Info(repo.GetFullPath(), "git pull err:", err)
+ if err := repo.RunVerbose([]string{"git", "pull"}); err != nil {
+ return err
}
return nil
}