Merge pull request #520 from runatlantis/warn-log

Log rev-parse error at warn level.
This commit is contained in:
Luke Kysow
2019-03-07 10:01:31 -05:00
committed by GitHub

View File

@@ -90,7 +90,7 @@ func (w *FileWorkspace) Clone(
revParseCmd.Dir = cloneDir
output, err := revParseCmd.CombinedOutput()
if err != nil {
log.Err("will re-clone repo, could not determine if was at correct commit: %s: %s: %s", strings.Join(revParseCmd.Args, " "), err, string(output))
log.Warn("will re-clone repo, could not determine if was at correct commit: %s: %s: %s", strings.Join(revParseCmd.Args, " "), err, string(output))
return w.forceClone(log, cloneDir, headRepo, p)
}
currCommit := strings.Trim(string(output), "\n")