author | Kirill Smelkov <kirr@landau.phys.spbu.ru> | |
Wed, 29 Sep 2010 11:35:22 +0000 (15:35 +0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 29 Sep 2010 23:53:25 +0000 (16:53 -0700) | ||
commit | 6517cf7de8fe7a2b2c90655a79d11cba586a36e6 | |
tree | 25e8b1cb6ca46bddb6676a964e7cd90d0e0a1064 | tree | snapshot |
parent | d391c0ff94e1b314b0664db0e8eb5bd92934f9cb | commit | diff |
blame,cat-file: Prepare --textconv tests for correctly-failing conversion program
The textconv filter is sometimes incorrectly ran on a temporary file
whose content is the target of a symbolic link, instead of actual file
content. Prepare to test this by marking the content of the file to
convert with "bin:", and let the helper die if "bin:" is not found in
the file content.
NOTE: I've changed $@ to $1 in helper becase textconv program "should
take a single argument" (see Documentation/gitattributes.txt), so
making this more explicit makes sense and also helps to avoid
problems with feeding arguments to echo.
Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Reviewed-by: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The textconv filter is sometimes incorrectly ran on a temporary file
whose content is the target of a symbolic link, instead of actual file
content. Prepare to test this by marking the content of the file to
convert with "bin:", and let the helper die if "bin:" is not found in
the file content.
NOTE: I've changed $@ to $1 in helper becase textconv program "should
take a single argument" (see Documentation/gitattributes.txt), so
making this more explicit makes sense and also helps to avoid
problems with feeding arguments to echo.
Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Reviewed-by: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t8006-blame-textconv.sh | diff | blob | history | |
t/t8007-cat-file-textconv.sh | diff | blob | history |