From 66d2bf7659691167f4e4e48a281774e25a887960 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Tue, 3 Nov 2020 19:38:33 +0100 Subject: [PATCH] Give batch files CRLF line endings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Batch files should be CRLF, otherwise they may end up triggering an "The system cannot find the batch label specified" error. Relying on core.autocrlf to ensure this runs the risk of the user not having the config set correctly, and also doesn't cover the use of the same source checkouts across platforms. Change-Id: I3166b99ce38e4ba9a0674336d69aa915e27860d1 Reviewed-by: Tor Arne Vestbø Reviewed-by: Oswald Buddenhagen --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitattributes b/.gitattributes index 1a045fa1f02..c138aa11cc8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,3 +2,5 @@ .gitignore export-ignore .gitattributes export-ignore .commit-template export-ignore +*.bat text eol=crlf +*.bat.in text eol=crlf