mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vget: clone with depth 1 and use module name instead of repository name
This commit is contained in:
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
Block a user