Browse Source
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>maint
Jim Meyering
13 years ago
committed by
Junio C Hamano
2 changed files with 11 additions and 1 deletions
Loading…
Reference in new issue