forked from rosa/hakurei
internal/rosa/git: shallow clone
The .git directory is destroyed anyway, so no point fetching more than the bare minimum. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -105,7 +105,9 @@ func (t Toolchain) NewViaGit(
|
|||||||
git \
|
git \
|
||||||
-c advice.detachedHead=false \
|
-c advice.detachedHead=false \
|
||||||
clone \
|
clone \
|
||||||
|
--depth=1 \
|
||||||
--revision=`+rev+` \
|
--revision=`+rev+` \
|
||||||
|
--shallow-submodules \
|
||||||
--recurse-submodules \
|
--recurse-submodules \
|
||||||
`+url+` \
|
`+url+` \
|
||||||
/work
|
/work
|
||||||
|
|||||||
Reference in New Issue
Block a user