awslabs / git-secrets

Prevents you from committing secrets and credentials into git repositories
Apache License 2.0
12.36k stars 1.17k forks source link

Don't assume HEAD is a symref in prepare-commit-msg hook. #184

Open steadmon opened 3 years ago

steadmon commented 3 years ago

prepare-commit-msg generates spurious error messages when HEAD is detached. Use a simpler log command to avoid these errors.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.