mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-11 21:18:46 -05:00
git-am.sh's check_patch_format function would attempt to preview the patch to guess its format, but would go into an infinite loop when the patch file happened to be empty. The solution: exit the loop when "read" fails, not when the line var, "$l1" becomes empty. Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
21 KiB
Executable File
21 KiB
Executable File