diff options
Diffstat (limited to 'rill.go')
| -rw-r--r-- | rill.go | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -17,16 +17,6 @@ var ErrorGitPullOnLocal error = errors.New("git pull on local only branch") var ErrorGitPullOnDirty error = errors.New("cannot git pull on dirty repo") func (repo *Repo) GitPull() (*cmd.Status, error) { - /* - currentName := repo.GetCurrentBranchName() - if repo.IsOnlyLocalTag(currentName) { - var result cmd.Status - result.Exit = 21 - result.Error = ErrorGitPullOnLocal - // log.Info("git pull skipped on local only branch", repo.GetGoPath()) - return result - } - */ var cmd []string cmd = append(cmd, "git", "pull") return nil, repo.RunVerbose(cmd) @@ -85,6 +75,7 @@ func (all *Repos) RillGitPull(part1 int, part2 int) map[*Repo]*cmd.Status { return allerr } +/* func (repo *Repo) GitPullRealtime() cmd.Status { currentName := repo.GetCurrentBranchName() if repo.IsOnlyLocalTag(currentName) { @@ -99,3 +90,4 @@ func (repo *Repo) GitPullRealtime() cmd.Status { r := repo.RunRealtime(cmd) return r } +*/ |
