[ovs-dev] [PATCH] build: Add gitattribute file to build-aux
Alin Gabriel Serdean
aserdean at ovn.org
Tue Jul 17 12:26:20 UTC 2018
The command: `make check-tabs` fails on Windows due to line ending conversions
caused by the following setting: `git config --global core.autocrlf true`
(the whitelist `build-aux/initial-tab-whitelist` becomes a blacklist)
This patch adds a .gittatribute file to build-aux to force LF endings
on Windows.
Signed-off-by: Alin Gabriel Serdean <aserdean at ovn.org>
---
.gitignore | 1 -
build-aux/.gitattributes | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
create mode 100644 build-aux/.gitattributes
diff --git a/.gitignore b/.gitignore
index 81faf270d..60e7818c3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,7 +31,6 @@
.libs
.tmp_versions
.vagrant
-.gitattributes
/Makefile
/Makefile.in
/aclocal.m4
diff --git a/build-aux/.gitattributes b/build-aux/.gitattributes
new file mode 100644
index 000000000..fcadb2cf9
--- /dev/null
+++ b/build-aux/.gitattributes
@@ -0,0 +1 @@
+* text eol=lf
--
2.16.1.windows.1
More information about the dev
mailing list