Skip to content

Commit

Permalink
Force line endings when cloning (nim-lang#1072)
Browse files Browse the repository at this point in the history
- If we don't force them then depending on the target os the checksum might
fail.
  • Loading branch information
yyoncho authored Feb 20, 2023
1 parent 3575fd5 commit 47531a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nimblepkg/download.nim
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ proc doClone(meth: DownloadMethod, url, downloadDir: string, branch = "",
depthArg = if onlyTip: "--depth 1" else: ""
branchArg = if branch == "": "" else: &"-b {branch}"
discard tryDoCmdEx(
"git clone --config core.autocrlf=false --recursive " &
"git clone --config core.autocrlf=false --config core.eol=lf --recursive " &
&"{depthArg} {branchArg} {url} {downloadDir}")
of DownloadMethod.hg:
let
Expand Down

0 comments on commit 47531a6

Please sign in to comment.