diff options
Diffstat (limited to 'doStrict.go')
| -rw-r--r-- | doStrict.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doStrict.go b/doStrict.go index aeea171..2255582 100644 --- a/doStrict.go +++ b/doStrict.go @@ -19,6 +19,11 @@ func doStrict(repo *gitpb.Repo) error { repo.Run([]string{"git", "notes", "remove"}) + if err := repo.RepoIgnoresGoMod(); err != nil { + log.Info(repo.GetGoPath(), "git repo does not ignore go.mod. do nothing here", err) + return nil + } + // erase the go.mod and go.sum files eraseGoMod(repo) |
