diff --git a/entrypoint.sh b/entrypoint.sh index 4f2eafa..977848b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -100,12 +100,7 @@ TEMP_DIR=$(mktemp -d) # but not anymore. Otherwise we had to remove the files from "$CLONE_DIR", # including "." and with the exception of ".git/" mv "$CLONE_DIR/.git" "$TEMP_DIR/.git" - -# If enabled, copy .gitattributes file to keep LFS working. -if [ "$KEEP_GITATTRIBUTES" = "true" ] -then - mv "$CLONE_DIR/.gitattributes" "$TEMP_DIR/.gitattributes" -fi +mv "$CLONE_DIR/.gitattributes" "$TEMP_DIR/.gitattributes" # $TARGET_DIRECTORY is '' by default @@ -127,6 +122,7 @@ mv "$TEMP_DIR/.git" "$CLONE_DIR/.git" # If enabled, restore .gitattributes file to keep LFS working. if [ "$KEEP_GITATTRIBUTES" = "true" ] then + echo "[+] Restoring .gitattributes file" mv "$TEMP_DIR/.gitattributes" "$CLONE_DIR/.gitattributes" fi