libretro-buildbot-recipe.sh: Make shallow fetches.

This commit is contained in:
orbea 2018-01-07 10:25:03 -08:00
parent b9a9f58a7e
commit 5dfd1e1356

View File

@ -621,7 +621,7 @@ while read line; do
rm -rfv -- "$DIR" && continue; }
echo "fetching changes from repo $URL..."
git --work-tree="$DIR" --git-dir="$DIR/.git" fetch origin "$GIT_BRANCH"
git --work-tree="$DIR" --git-dir="$DIR/.git" fetch --depth 1 origin "${GIT_BRANCH}"
echo "resetting repo state $URL..."
git --work-tree="." --git-dir=".git" -C "$DIR" reset --hard FETCH_HEAD