Commit f318b102 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Modif git hook : update

parent 6b6b235e
Loading
Loading
Loading
Loading
+2 −1
Changes for update.sh: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -23,9 +23,10 @@ if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then
        exit 1
fi


BRANCH="master"

# only checking out the BRANCH branch
# only checking out the BRANCH is allowed
if [[ "$refname" = "refs/heads/$BRANCH" ]];
then
    echo "Ref $refname received. Deploying $BRANCH branch..."