diff options
| author | Jeff Carr <[email protected]> | 2025-02-22 06:52:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-22 06:52:50 -0600 |
| commit | c521620b04473a5a5b3cea826b21d73fed2d2d20 (patch) | |
| tree | 5bd8c7b2777055d4686bb20f63da852384be0409 /gitPull.go | |
| parent | cc19c8ac8e5b4ce31838895344db442ccffdbac0 (diff) | |
fix build and cleanup old code
Diffstat (limited to 'gitPull.go')
| -rw-r--r-- | gitPull.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gitPull.go b/gitPull.go deleted file mode 100644 index f2e4528..0000000 --- a/gitPull.go +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "go.wit.com/lib/gui/shell" - "go.wit.com/log" -) - -func gitPull() { - log.Info("Total repositories:", forge.Repos.Len()) - log.Info("Going to run git pull in each one. TODO: use rill here") - pull := []string{"git", "pull"} - - var trycount, errcount int - repos := forge.Repos.SortByFullPath() - for repos.Scan() { - repo := repos.Next() - if argv.DryRun { - log.Info("git pull --dry-run", repo.GetGoPath()) - continue - } - log.Info("git pull:", repo.FullPath) - trycount += 1 - log.Info("actually run: git pull:", repo.GetGoPath()) - if result := shell.PathRunRealtime(repo.FullPath, pull); result.Error != nil { - log.Info("git pull error:", result.Error) - errcount += 1 - } - } - log.Info("Total repositories:", forge.Repos.Len(), "Total attempted:", trycount, "Errors:", errcount) -} |
