Skip to content
Snippets Groups Projects
Commit d55a4872 authored by Armand Bahi's avatar Armand Bahi
Browse files

Pull and push hooks

parent c7d34b24
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#
#
# Script de mise à jour des hooks client
#
#
#
if [ "post-merge" ]; then
if [ -d "../.git/hooks" ]; then
cp -f post-merge ../.git/hooks/post-merge
cp -f pre-push ../.git/hooks/pre-push
fi
fi
#!/bin/sh
#
# Hook qui permet de push toutes les dépendances
# quand on fait un push sur l'application
#
#
#
#
#
echo "****** Pre-push Hook ******"
echo "$(pwd)"
if [ -d "$(pwd)/utils" ]; then
cd utils
./push_subtrees.sh
fi
#!/bin/sh
#
# Hook qui permet de mettre à jour toutes les dépendances
# quand on fait un pull sur l'application
#
#
#
#
#
echo "****** Post-merge Hook ******"
echo "$(pwd)"
if [ -d "$(pwd)/utils" ]; then
cd utils
./pull_subtrees.sh
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment