mirror of
https://github.com/libretro/libretro-super
synced 2025-02-05 00:40:11 +00:00
libretro-buildbot-recipe.sh: Make shallow fetches.
This commit is contained in:
parent
b9a9f58a7e
commit
5dfd1e1356
@ -621,7 +621,7 @@ while read line; do
|
|||||||
rm -rfv -- "$DIR" && continue; }
|
rm -rfv -- "$DIR" && continue; }
|
||||||
|
|
||||||
echo "fetching changes from repo $URL..."
|
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..."
|
echo "resetting repo state $URL..."
|
||||||
git --work-tree="." --git-dir=".git" -C "$DIR" reset --hard FETCH_HEAD
|
git --work-tree="." --git-dir=".git" -C "$DIR" reset --hard FETCH_HEAD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user