We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 773abd8 commit a923d05Copy full SHA for a923d05
scripts/update.sh
@@ -48,14 +48,20 @@ git submodule update
48
cd docroot/legalcode
49
if [[ ! -z `git branch -r | grep ${BRANCH}` ]]; then
50
if [[ -z `git branch | grep ${BRANCH}` ]]; then
51
+ echo "Checking out legalcode branch ${BRANCH} from remote"
52
git checkout -b ${BRANCH} origin/${BRANCH}
53
fi
54
+else
55
+ echo "Making sure legalcode is set to branch ${BRANCH}"
56
git checkout ${BRANCH}
57
58
+
59
+echo "Updating legalcode"
60
git pull
61
62
cd ../..
63
-# Commit any update (if there was one)
64
+# Commit any update to legalcode submodule rev
65
git commit -m "Update legalcode submodule to latest version" docroot/legalcode
66
67
# Another ugly hack - some WP plugins can't handle how we have it
0 commit comments