diff options
Diffstat (limited to 'doPull.go')
| -rw-r--r-- | doPull.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 } |
