|
@@ -40,9 +40,9 @@ fetch_dep(Cwd, Config, ConfigFile, Name, Cmd, Uri, Co, Cache) ->
|
|
|
|
|
|
{R,Co1} = case Co of
|
|
{R,Co1} = case Co of
|
|
{_,Rev} ->
|
|
{_,Rev} ->
|
|
- {["git clone ",Uri," ",TrunkPath," && cd ",TrunkPath,
|
|
|
|
|
|
+ {["git clone --depth=1 ",Uri," ",TrunkPath," && cd ",TrunkPath,
|
|
" && git checkout \"",Rev,"\"" ],Rev};
|
|
" && git checkout \"",Rev,"\"" ],Rev};
|
|
- Master -> {["git clone ", Uri," ", TrunkPath ],lists:concat([Master])} end,
|
|
|
|
|
|
+ Master -> {["git clone --depth=1 ",Uri," ",TrunkPath],lists:concat([Master])} end,
|
|
|
|
|
|
os:cmd(R),
|
|
os:cmd(R),
|
|
|
|
|