Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở Phù hợp với người mới
#1,264 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@yebuguntang đang làm issue này rồi.

Từ ngày 25/10/2026.

  • #1265 của @yebuguntang — đang mở

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
91/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
git, github, java
Lĩnh vực
build-system

Hướng nghiên cứu

Bắt đầu từ quy tắc .gitattributes được đề cập trong issue và kiểm tra kiểu xuống dòng của tệp được theo dõi bằng git ls-files --eol mvnw.cmd. Trên một nhánh tách từ main, chạy git add --renormalize mvnw.cmd; xác nhận diff đã stage trống với --ignore-cr-at-eol, index báo i/lf và working tree báo w/crlf, đồng thời hash của tệp làm việc không đổi sau khi checkout lại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

discussion welcome help wanted
Motivation

mvnw.cmd always shows as modified in git status after cloning — 188 insertions, 188 deletions, all line-ending noise — but clicking the diff shows no actual content change.

Image

.gitattributes tells git to store *.cmd as LF and convert to CRLF on checkout, but the committed blob for this file already contains CRLF, so the comparison never matches:

Image

The rule was added in #1049 (c614183) without renormalizing the file. It's the only tracked file with this problem, out of 930. Reproduces on a fresh clone; core.autocrlf makes no difference (same with true, input, false).

Nothing breaks because of it, but anyone running git commit -a will commit a whitespace-only change without noticing.

How to complete

git add --renormalize mvnw.cmd

on a branch off main. The stored blob becomes LF; the file Windows users get on checkout is unchanged, same hash before and after re-checkout.

Task List
  • renormalize mvnw.cmd
  • git ls-files --eol reports i/lf w/crlf
  • staged diff with --ignore-cr-at-eol comes back empty
  • working file hash unchanged after re-checkout
  • PR: chore: renormalize mvnw.cmd line endings
Anything else?

No response

Ngôn ngữ chính
Java
Star
6.3k
Fork
545
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
41

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/fesod

Tất cả issue của apache/fesod

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.