Projet

Général

Profil

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

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

1
#!/bin/sh
2

    
3
. /users/guest/assos/bin/scripts-config.sh
4
. /users/guest/assos/bin/scripts-utils.sh
5

    
6
if ! `check_if_work_tree_clean` ; then
7
    mail_unclean_work_tree "[git] WORK TREE UNCLEAN"
8
fi
9

    
10
git_log=`git log -p --after=yesterday`
11
if [ -n "$git_log" ] ; then
12
    echo $git_log | mail -s "[git] Report"
13
fi
14

    
15
git pull --rebase
16
git push