Skip to content

Commit a923d05

Browse files
committed
legalcode auto-update fixes
1 parent 773abd8 commit a923d05

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/update.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,20 @@ git submodule update
4848
cd docroot/legalcode
4949
if [[ ! -z `git branch -r | grep ${BRANCH}` ]]; then
5050
if [[ -z `git branch | grep ${BRANCH}` ]]; then
51+
echo "Checking out legalcode branch ${BRANCH} from remote"
5152
git checkout -b ${BRANCH} origin/${BRANCH}
5253
fi
54+
else
55+
echo "Making sure legalcode is set to branch ${BRANCH}"
5356
git checkout ${BRANCH}
5457
fi
58+
59+
echo "Updating legalcode"
5560
git pull
61+
5662
cd ../..
5763

58-
# Commit any update (if there was one)
64+
# Commit any update to legalcode submodule rev
5965
git commit -m "Update legalcode submodule to latest version" docroot/legalcode
6066

6167
# Another ugly hack - some WP plugins can't handle how we have it

0 commit comments

Comments
 (0)