author | Alex Riesen <raa.lkml@gmail.com> | |
Wed, 13 May 2009 18:08:53 +0000 (20:08 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 13 May 2009 20:13:30 +0000 (13:13 -0700) | ||
commit | 95405ba6cf7adeaa4a066e8a3a1b76b73f7b9341 | |
tree | 9d966873447048272d70741b14aade4bef08eeb1 | tree | snapshot |
parent | 1a2872595409fbdd5d448730953884ef8d8c6613 | commit | diff |
Quote LF in urls git fetch saves in FETCH_HEAD
The fmt-merge-msg does a strong syntax checking of its input and fails
with if it is incorrect. The LF character is the only character
important for fmt-merge-msg. As the url in FETCH_HEAD plays only
informational role, a quoted representation of the url should be good
and true enough.
The url often comes from either user-editable config or command line,
so it is reasonable to expect all kinds of characters in it, including
the characters which the format of FETCH_HEAD considers special (line
separator in this case).
Noticed and reported by Hugo Mildenberger.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The fmt-merge-msg does a strong syntax checking of its input and fails
with if it is incorrect. The LF character is the only character
important for fmt-merge-msg. As the url in FETCH_HEAD plays only
informational role, a quoted representation of the url should be good
and true enough.
The url often comes from either user-editable config or command line,
so it is reasonable to expect all kinds of characters in it, including
the characters which the format of FETCH_HEAD considers special (line
separator in this case).
Noticed and reported by Hugo Mildenberger.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch.c | diff | blob | history |