summaryrefslogtreecommitdiff
path: root/compare.go
diff options
context:
space:
mode:
Diffstat (limited to 'compare.go')
-rw-r--r--compare.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/compare.go b/compare.go
index ddc639d..28fb9d1 100644
--- a/compare.go
+++ b/compare.go
@@ -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)