Currently, you need to manually keep your git repo fetched before any
changes exist to be deployed.
This commit adds a git fetch to pull any changes before deploying.
Signed-off-by: Liam Whalen <liam.whalen@bc.libraries.coop>
#deployment
HOST_LIST_FOR_DIR_NAME=`echo $HOST_LIST | tr ' ' '\n' | sort | while read SORTED_HOST_LIST ; do get_hostname $SORTED_HOST_LIST ; done | tr '\n' '_' | { read SORTED_HOST_LIST; echo ${SORTED_HOST_LIST%?}; }`
+#do a git fetch on the repo
+echo "Fetching $REMOTE from the $REPO"
+git --git-dir $REPO fetch $REMOTE
if [[ -z "$SYNC" ]]
then