Bonsoir,
Le 23/09/2012 11:45, Stéphane Leblond a écrit :
Si tu mets dont dépôt git dans l'arborescence web tu récupères bien le
numéro de révision
Oui.
Mais, si tu archives ton arborescence web à un instant t, tu récupères
tout le dossier .git, qui peut avoir un volume conséquent.
En master, j'ai:
118M .git
Ca fait beaucoup plus que l'arbo gepi standard.
cd /var/www/gepi
# test la présence de l'alias de thomas et fait la mise à jour
alias=thomas
release=release-1.6.1
if cat .git/config | grep -q "$alias"
then
git checkout $release
git stash
git pull -f $alias $release
else
git remote add thomas git://github.com/tbelliard/gepi.git
git fetch thomas
git checkout $release
git stash
git pull -f $alias $release
fi
# Puis on corrige les droits
Cordialement
--
Stephane Boireau
Collège Le Hameau - Bernay (27)
http://stephane.boireau.free.fr/gadgets/crobards.html
_________________________________________________________________________________
Documentation Gepi en ligne : http://www.sylogix.org/projects/gepi/wiki
Pour modifier ou résilier votre abonnement à cette liste :
https://lists.sylogix.net/mailman/listinfo/gepi-users