Skip to content

Commit b503ec2

Browse files
committed
Fix the cloneSpecificRevision procedure
When cloning a specific revision we also must disable automatic line endings conversions just like for the `doClone` procedure in the previous commit. Related to nim-lang#957
1 parent 46fb5a4 commit b503ec2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nimblepkg/download.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ proc cloneSpecificRevision(downloadMethod: DownloadMethod,
144144
let downloadDir = downloadDir.quoteShell
145145
createDir(downloadDir)
146146
discard tryDoCmdEx(&"git -C {downloadDir} init")
147+
discard tryDoCmdEx(&"git -C {downloadDir} config core.autocrlf false")
147148
discard tryDoCmdEx(&"git -C {downloadDir} remote add origin {url}")
148149
discard tryDoCmdEx(
149150
&"git -C {downloadDir} fetch --depth 1 origin {vcsRevision}")

0 commit comments

Comments
 (0)