]> granicus.if.org Git - graphviz/commitdiff
CI: change crlf to lf in worktree in windows-cygwin-cmake-build
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 15 Sep 2021 17:06:46 +0000 (19:06 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 18 Sep 2021 06:16:53 +0000 (08:16 +0200)
Replace crlf with lf in all text files in the worktree before starting
Cygwin.

This will allow an upcoming commit to stop exporting SHELLOPTS =
"igncr" which has some negative side effects explained in that commit.

.gitlab-ci.yml

index 38079e9878e5c705236923dcfa09f81f1f8e6667..c72c0354492c57f5f15aae144561b7824ccbb1c8 100644 (file)
@@ -700,6 +700,9 @@ windows-cygwin-cmake-build:
     stage: build
     needs: []
     script:
+        # change line endings from crlf to lf
+        - git rm --cached -r .
+        - git -c core.autocrlf=false reset --hard
         - choco install --yes --no-progress cygwin
         # avoid BOM in COLLECTION file
         - echo experimental | Out-File COLLECTION -Encoding ascii