From 5dfd1e135606fcf5d37bfe118d9a083091d88c42 Mon Sep 17 00:00:00 2001 From: orbea Date: Sun, 7 Jan 2018 10:25:03 -0800 Subject: [PATCH] libretro-buildbot-recipe.sh: Make shallow fetches. --- libretro-buildbot-recipe.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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