Project

General

Profile

Paste
Download (402 Bytes) Statistics
| Branch: | Revision:

root / bin / git-report.sh @ 06e9d071

1
#!/bin/sh
2

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

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

    
10
git_log=`git log -p --since="yesterday" --pretty=format:"########## %s ###########"`
11
if [ -n "$git_log" ] ; then
12
    echo "$git_log" | mail -s "[git] Report" $email_multi_assos
13
fi
14

    
15
git pull --rebase > /dev/null
16
git push > /dev/null