mirror of
https://github.com/libretro/libretro-super
synced 2025-01-03 23:37:11 +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
|
git submodule foreach git pull origin master
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "git clone \"$1\" \"$WORKDIR/$2\""
|
clone_type=
|
||||||
git clone "$1" "$WORKDIR/$2"
|
[ -n "$SHALLOW_CLONE" ] && depth="--depth 1"
|
||||||
|
echo "git clone $depth \"$1\" \"$WORKDIR/$2\""
|
||||||
|
git clone $depth "$1" "$WORKDIR/$2"
|
||||||
if [ -n "$4" ]; then
|
if [ -n "$4" ]; then
|
||||||
echo "cd \"$fetch_dir\""
|
echo "cd \"$fetch_dir\""
|
||||||
cd "$fetch_dir"
|
cd "$fetch_dir"
|
||||||
|
Loading…
Reference in New Issue
Block a user