From: James D. Forrester Date: Wed, 17 Dec 2014 01:32:54 +0000 (-0800) Subject: maintenance: Have update-oojs-ui.sh update composer.json too X-Git-Tag: 1.31.0-rc.0~12728^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=998e7b605788eaf29ce47d2589086cead2e6d73f maintenance: Have update-oojs-ui.sh update composer.json too Change-Id: Ifa37c9dcd136051c5ab8967f7ba1e490a5aa7861 --- diff --git a/maintenance/resources/update-oojs-ui.sh b/maintenance/resources/update-oojs-ui.sh index 93aacdeb53..88d9f87798 100755 --- a/maintenance/resources/update-oojs-ui.sh +++ b/maintenance/resources/update-oojs-ui.sh @@ -15,6 +15,7 @@ NPM_DIR=$(mktemp -d 2>/dev/null || mktemp -d -t 'update-oojs-ui') # e.g. /tmp/up # Prepare working tree cd "$REPO_DIR" && +git reset composer.json && git checkout composer.json && git reset $TARGET_DIR && git checkout $TARGET_DIR && git fetch origin && git checkout -B upstream-oojs-ui origin/master || exit 1 @@ -58,5 +59,8 @@ Release notes: END ) +# Update composer.json as well +composer require oojs/oojs-ui $OOJSUI_VERSION --no-update + # Stage deletion, modification and creation of files. Then commit. -git add --update $TARGET_DIR && git add $TARGET_DIR && git commit -m "$COMMITMSG" || exit 1 +git add --update $TARGET_DIR && git add $TARGET_DIR && git add composer.json && git commit -m "$COMMITMSG" || exit 1