Skip to content

Commit 46fb5a4

Browse files
committed
Fix the doClone procedure to clone a repository as is
To have the right package checksum when cloning a Git repository, we have to clone it without changing the line endings according to the operating system. Fixes #957
1 parent 26c9102 commit 46fb5a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nimblepkg/download.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ proc doClone(meth: DownloadMethod, url, downloadDir: string, branch = "",
3535
depthArg = if onlyTip: "--depth 1" else: ""
3636
branchArg = if branch == "": "" else: &"-b {branch}"
3737
discard tryDoCmdEx(
38-
&"git clone --recursive {depthArg} {branchArg} {url} {downloadDir}")
38+
"git clone --config core.autocrlf=false --recursive " &
39+
&"{depthArg} {branchArg} {url} {downloadDir}")
3940
of DownloadMethod.hg:
4041
let
4142
tipArg = if onlyTip: "-r tip " else: ""

0 commit comments

Comments
 (0)