diff options
Diffstat (limited to 'doPull.go')
| -rw-r--r-- | doPull.go | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -14,12 +14,19 @@ func rillPull(repo *gitpb.Repo) error { return nil } t, _ := repo.LastGitPull() - if time.Since(t) < time.Minute*10 { + if time.Since(t) < time.Minute*10 && !argv.Force { if argv.Verbose { log.Info(repo.GetFullPath(), "git pulled too recently", shell.FormatDuration(time.Since(t))) } return nil } + cur := repo.GetCurrentBranchName() + if !repo.IsBranchRemote(cur) { + if argv.Verbose { + log.Info(repo.GetFullPath(), "branch is not remote", cur) + } + return nil + } var cmd []string cmd = append(cmd, "git", "pull") |
