Projet

Général

Profil

Paste
Télécharger (416 octets) Statistiques
| Branche: | Révision:

root / bin / git-report.sh @ 6c38d829

1 1c1c5a42 Julien Enselme
#!/bin/sh
2
3
. /users/guest/assos/bin/scripts-config.sh
4
. /users/guest/assos/bin/scripts-utils.sh
5
6 0c16dce5 Julien Enselme
if ! `work_tree_clean` ; then
7 1c1c5a42 Julien Enselme
    mail_unclean_work_tree "[git] WORK TREE UNCLEAN"
8
fi
9
10 7a9b0982 Florent Torregrosa
git_log=`git log -p --since="yesterday" --pretty=format:"########## %s ###########"`
11 6d91f38e Julien Enselme
if [ -n "$git_log" ] ; then
12 7a9b0982 Florent Torregrosa
    echo "$git_log" | mail -s "[git] Report" $email_multi_assos
13 1c1c5a42 Julien Enselme
fi
14 c01204bf Julien Enselme
15 edcb0bf0 Julien Enselme
git pull --rebase > /dev/null
16
git push > /dev/null