Commit Graph

3 Commits

Author SHA1 Message Date
Denis Bilenko d4f30604f9 clean up duplicate test case 2024-12-09 17:42:42 +01:00
Denis Bilenko fa3f4cde77 fix tests 2024-12-09 16:21:12 +01:00
Denis Bilenko 23169cdd87 Improve git config section validation
Previously we checked if ActualBranch (from .git) and Branch disagreed
and issued an error unless --force was passed.

We still do that, but also:
 - if --force is passed, we now log this as a warning (previously it went silent)
 - we do the same logic for commit (previously unchecked)
 - we do similar logic for originURL except it always logs warning and never
   prevent the deployment

I removed separate mutator (validate_git_details.go) and put everything into load_git_details.go.
2024-12-09 16:01:28 +01:00