mirror of
https://github.com/git/git.git
synced 2026-04-01 20:40:08 +02:00
CRLF in info/grafts causes parse error
"Yann Dirson" <ydirson@linagora.com> writes: > When creating an info/grafts under windows, one typically gets a CRLF file. > Then: > > * gitk loudly complains about "bad graft data" > * "git log > /dev/null" does not report any problem > * "git log > foo" does report the problem on sdterr, but exit code is still 0 > > Recreating the graft as a LF file (eg with "echo" or "printf") causes the > graft to be properly interpreted. I do not see any reason to forbid trailing CR at the end of the line (for that matter, any trailing whitespaces) in the said file. How about doing this? commit.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
This commit is contained in:
committed by
Johannes Schindelin
parent
127aa63757
commit
8ed9ebe27a
Reference in New Issue
Block a user