root / bin / git-report.sh @ cf6a035a
1 |
#!/bin/sh |
---|---|
2 |
|
3 |
. /users/guest/assos/bin/scripts-config.sh |
4 |
. /users/guest/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 |