vget: clone with depth 1 and use module name instead of repository name

pull/1473/head
S-YOU 2019-08-05 00:00:00 +09:00 committed by Alexander Medvednikov
parent 0379b9cc69
commit 58117f1312
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ fn main() {
s := http.get_text(url + '/jsmod/$name')
mod := json.decode(Mod, s) or { return }
home := os.home_dir()
os.exec('git -C "$home/.vmodules" clone $mod.url')
os.exec('git -C "$home/.vmodules" clone --depth=1 $mod.url $mod.name')
println(s)
}