mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 14:55:24 +00:00
@@ -42,3 +42,9 @@ proc cloneDependency*(destDirBase: string, url: string, commit = commitHead,
|
||||
discard "this dependency was bundled with Nim, don't do anything"
|
||||
else:
|
||||
quit "FAILURE: " & destdir & " already exists but is not a git repo"
|
||||
|
||||
proc updateSubmodules*(dir: string) =
|
||||
let oldDir = getCurrentDir()
|
||||
setCurrentDir(dir)
|
||||
exec "git submodule update --init"
|
||||
setCurrentDir(oldDir)
|
||||
|
||||
Reference in New Issue
Block a user