Doing a git clone results modified gradlew.bat which might be due to changes in .gitattributes:
08:59 $ git clone git@github.com:spring-projects/spring-security.git
Cloning into 'spring-security'...
remote: Enumerating objects: 268330, done.
remote: Counting objects: 100% (3724/3724), done.
remote: Compressing objects: 100% (1306/1306), done.
remote: Total 268330 (delta 1624), reused 3435 (delta 1460), pack-reused 264606
Receiving objects: 100% (268330/268330), 53.93 MiB | 14.96 MiB/s, done.
Resolving deltas: 100% (132010/132010), done.
✔ ~/repos/spring
08:59 $ cd spring-security
✔ ~/repos/spring/spring-security [main|✚ 3]
09:00 $ git status
On branch main
Your branch is up-to-date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: gradlew.bat
no changes added to commit (use "git add" and/or "git commit -a")
✔ ~/repos/spring/spring-security [main|✚ 3]
09:00 $ git reset HEAD gradlew.bat
Unstaged changes after reset:
M gradlew.bat
✔ ~/repos/spring/spring-security [main|✚ 3]
09:02 $ git checkout gradlew.bat
Updated 1 path from the index
✔ ~/repos/spring/spring-security [main|✚ 3]
09:02 $
✔ ~/repos/spring/spring-security [main|✚ 3]
09:02 $ git status
On branch main
Your branch is up-to-date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: gradlew.bat
no changes added to commit (use "git add" and/or "git commit -a")
09:05 $ git --version
git version 2.31.1
Comment From: marcusdacoregio
Thanks for the report @jvalkeal.
That's true because of the addition of .gitattributes. We must treat .bat files the same as text files, like Spring Framework does..
Comment From: jvalkeal
Thx, doesn't happen anymore.