Commit 9178e277 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Modif git hook : update

parent 4872ca80
Loading
Loading
Loading
Loading
+3 −3
Changes for update.sh: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -27,11 +27,11 @@ fi
BRANCH="master"

# only checking out the BRANCH branch
if [[ "$newrev" = "refs/heads/$BRANCH" ]];
if [[ "$refname" = "refs/heads/$BRANCH" ]];
then
    echo "Ref $newrev received. Deploying $BRANCH branch..."
    echo "Ref $refname received. Deploying $BRANCH branch..."
else
    echo "Ref $newrev received. Doing nothing: only the $BRANCH branch may be deployed on this server."
    echo "Ref $refname received. Doing nothing: only the $BRANCH branch may be deployed on this server."
    exit 0
fi