Merge pull request #1025 from orbea/stella

libretro-buildbot-recipe.sh: Switch repos for new urls.
This commit is contained in:
Twinaphex 2019-05-01 16:10:34 +02:00 committed by GitHub
commit 6adb25d05f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -612,7 +612,14 @@ while read line; do
{ echo "git directory broken, removing $DIR and skipping $NAME."; \
rm -rfv -- "$DIR" && continue; }
if [ -z "${NOCLEAN}" ]; then
OLDURL="$(git --work-tree="$DIR" --git-dir="$DIR/.git" config --get remote.origin.url)"
if [ "$URL" != "$OLDURL" ]; then
rm -rvf -- "$DIR"
echo "cloning repo $URL..."
git clone --depth=1 -b "$GIT_BRANCH" "$URL" "$DIR"
BUILD="YES"
elif [ -z "${NOCLEAN}" ]; then
echo "fetching changes from repo $URL..."
git --work-tree="$DIR" --git-dir="$DIR/.git" fetch --depth 1 origin "${GIT_BRANCH}"