[PATCH v2 7/7] t4051: mark supporting files as requiring LF-only line endings
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- May 4, 2017, 09:50 UTC
- Message-ID
- <f648bb03c7fe3945042480f05b9ac229350412b3.1493891336.git.johannes.schindelin@gmx.de>
- In-Reply-To
- <cover.1493891336.git.johannes.schindelin@gmx.de>
The test t4051-diff-function-context.sh passes on Linux when core.autocrlf=true even without marking its support files as LF-only, but they fail when core.autocrlf=true in Git for Windows' SDK.
The reason is that `grep ... >file.c.new` will keep CR/LF line endings on Linux (obviously treating CRs as if they were regular characters), but will be converted to LF-only line endings with MSYS2's grep that is used in Git for Windows.
As we do not want to validate the way the available `grep` works, let's just mark the input as LF-only and move on.
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- t/.gitattributes | 1 + 1 file changed, 1 insertion(+)
diff --git a/t/.gitattributes b/t/.gitattributes index 3525ca43f30..bdd82cf31f7 100644 --- a/t/.gitattributes +++ b/t/.gitattributes @@ -5,6 +5,7 @@ t[0-9][0-9][0-9][0-9]/* -whitespace /t4034/*/* eol=lf /t4013/* eol=lf /t4018/* eol=lf +/t4051/* eol=lf /t4100/* eol=lf /t4101/* eol=lf /t4109/* eol=lf
-- 2.12.2.windows.2.800.gede8f145e06