diff --git a/libretro-buildbot-recipe.sh b/libretro-buildbot-recipe.sh index 7f9ebe9f..12a10432 100755 --- a/libretro-buildbot-recipe.sh +++ b/libretro-buildbot-recipe.sh @@ -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