From f2936bb4d4cba423b718cb6ee9b88d4245994f3d Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Wed, 30 Nov 2022 20:33:35 +0100 Subject: [PATCH] Add Comment to explain why we use git-diff again --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index c314f56..3c85831 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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