diff options
| -rw-r--r-- | compare.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,6 +3,7 @@ package gitpb import ( "strings" + "go.wit.com/lib/ENV" "go.wit.com/lib/config" "go.wit.com/log" ) @@ -162,7 +163,7 @@ func (repo *Repo) SafeDelete(deleteHash string, keepHash string) error { log.Printf("%-13.13s %-55.55s %v %s\n", "CMD OK", repo.FullPath, cmd1, "") log.Printf("%-13.13s %-55.55s %v %s\n", "CMD OK", repo.FullPath, cmd2, "") log.Printf("%-13.13s %-55.55s %v %s\n", "SAFE TO DELETE", repo.FullPath, cmd, "add --fix") - if config.Get("Fix") == "true" { + if ENV.Get("Fix") == "true" { err := repo.RunVerbose(cmd) if err != nil { log.Info(deleteHash, repo.FullPath) |
