Github user vladimir-kotikov commented on a diff in the pull request: https://github.com/apache/cordova-coho/pull/95#discussion_r41032650 --- Diff: src/create-verify-archive.js --- @@ -76,6 +77,49 @@ exports.createCommand = function*(argv) { var absOutDir = path.resolve(outDir); yield repoutil.forEachRepo(repos, function*(repo) { + if(isWin) { + var autoCRLF; + var eol; + var msg = ''; + + try { + autoCRLF = yield executil.execHelper(executil.ARGS('git config --get core.autocrlf'), true); + } catch(e) { + autoCRLF = ''; + } + + try { + eol = yield executil.execHelper(executil.ARGS('git config --get core.eol'), true); + } catch(e) { + eol = ''; + } + + if(autoCRLF !== 'false') { + msg = 'Warning: core.autocrlf is set to "' + autoCRLF + '".\n' + + 'Set either "' + repo.repoName + '" or global core.autocrlf setting to "false" to avoid issues with executables on non-Windows OS.\n'; + } + + if(eol !== 'lf') { --- End diff -- According to https://www.kernel.org/pub/software/scm/git/docs/git-config.html `core.eol=native` is also appropriate value on Mac and Linux.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org