vget: clone with depth 1 and use module name instead of repository name
parent
0379b9cc69
commit
58117f1312
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue