diff options
author | Jim Meyering <jim@meyering.net> | 2012-02-25 18:34:26 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-26 16:32:54 -0800 |
commit | f0c5793b37a53992611968ab4a1d62a0e3edc2dd (patch) | |
tree | 56d00d3f93f74032aa45899a931dd6f4872bb082 /t/t1509 | |
parent | rebase -m: only call "notes copy" when rewritten exists and is non-empty (diff) | |
download | tgif-f0c5793b37a53992611968ab4a1d62a0e3edc2dd.tar.xz |
am: don't infloop for an empty input file
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>
Diffstat (limited to 't/t1509')
0 files changed, 0 insertions, 0 deletions