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 |
6d91f38e
|
Julien Enselme
|
if ! `check_if_work_tree_clean` ; then
|
7 |
1c1c5a42
|
Julien Enselme
|
mail_unclean_work_tree "[git] WORK TREE UNCLEAN"
|
8 |
|
|
fi
|
9 |
|
|
|
10 |
|
|
git_log=`git log -p --after=yesterday`
|
11 |
6d91f38e
|
Julien Enselme
|
if [ -n "$git_log" ] ; then
|
12 |
1c1c5a42
|
Julien Enselme
|
echo $git_log | mail -s "[git] Report"
|
13 |
|
|
fi
|
14 |
c01204bf
|
Julien Enselme
|
|
15 |
|
|
git pull --rebase
|
16 |
|
|
git push |