mirror of
https://github.com/libretro/libretro-super
synced 2024-12-29 09:22:43 +00:00
Add support to fetch_git for shallow clones
This commit is contained in:
parent
42b9ad08b1
commit
d18e7a5fd5
@ -24,8 +24,10 @@ fetch_git() {
|
||||
git submodule foreach git pull origin master
|
||||
fi
|
||||
else
|
||||
echo "git clone \"$1\" \"$WORKDIR/$2\""
|
||||
git clone "$1" "$WORKDIR/$2"
|
||||
clone_type=
|
||||
[ -n "$SHALLOW_CLONE" ] && depth="--depth 1"
|
||||
echo "git clone $depth \"$1\" \"$WORKDIR/$2\""
|
||||
git clone $depth "$1" "$WORKDIR/$2"
|
||||
if [ -n "$4" ]; then
|
||||
echo "cd \"$fetch_dir\""
|
||||
cd "$fetch_dir"
|
||||
|
Loading…
Reference in New Issue
Block a user