Skip to content

chore: renormalize mvnw.cmd line endings - #1265

Open
yebuguntang wants to merge 1 commit into
apache:mainfrom
yebuguntang:fix/mvnw-cmd-line-endings
Open

yebuguntang wants to merge 1 commit into
apache:mainfrom
yebuguntang:fix/mvnw-cmd-line-endings

Conversation

@yebuguntang

Copy link
Copy Markdown

Purpose of the pull request

Closes #1264

mvnw.cmd always shows as modified in git status after cloning, even though nobody changed the file. .gitattributes says *.cmd blobs are stored as LF, but this one was committed with CRLF before the rule existed (#1049).

What's changed?

git add --renormalize mvnw.cmd

The stored blob becomes LF. The file Windows users check out is unchanged, same hash before and after. Verified:

  • git ls-files --eol now reports i/lf w/crlf
  • staged diff with --ignore-cr-at-eol comes back empty
  • git status is clean after the commit
  • mvnw.cmd -DskipTests package still builds
image

No docs or test changes needed — this only touches how the file is stored in git, not its content.

Checklist

  • I have read the Contributor Guide.
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task] mvnw.cmd always shows as modified after cloning

1 participant