Просмотр исходного кода

Set git line-ending config globally for Travis builds.

It looks like Git 1.8 does not respect superproject settings when
checking out submodules.
Vladimir Prus 10 лет назад
Родитель
Сommit
48015c7745
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      .travis.yml

+ 4 - 4
.travis.yml

@@ -84,8 +84,8 @@ before_script:
   - |
     if [[ "${RELEASE_BUILD}" == "LF" ]]; then
       cd "${TRAVIS_BUILD_DIR}"
-      git config core.eol lf
-      git config core.autocrlf input
+      git config --global core.eol lf
+      git config --global core.autocrlf input
       git rm --cache -r .
       git reset --quiet --hard HEAD
       git submodule update --init --recursive
@@ -93,8 +93,8 @@ before_script:
   - |
     if [[ "${RELEASE_BUILD}" == "CRLF" ]]; then
       cd "${TRAVIS_BUILD_DIR}"
-      git config core.eol crlf
-      git config core.autocrlf true
+      git config --global core.eol crlf
+      git config --global core.autocrlf true
       git rm --cache -r .
       git reset --quiet --hard HEAD
       git submodule update --init --recursive

粤ICP备19079148号