Add Comment to explain why we use git-diff again

This commit is contained in:
Stefan Zweifel 2022-11-30 20:33:35 +01:00
parent 7bd0e439a3
commit f2936bb4d4
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,10 @@ _main() {
_add_files
# Check dirty state of repo again using git-diff.
# (git-diff detects beter if CRLF of files changes and does NOT
# proceed, if only CRLF changes are detected. See #241 and #265
# for more details.)
if [ -n "$(git diff --staged)" ] || "$INPUT_SKIP_DIRTY_CHECK"; then
_local_commit