X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=build%2Fgit%2Fhooks%2Fupdate;h=01baae603d578d7c250b15bb6fbb893b5abf6fe4;hb=b6a5054473b03660664647866d41601431e83b07;hp=856d415b93ea0b16199a4f28ea96b73354c22cab;hpb=2b142f12b764fd7c84bfc3b861875a02b129a11b;p=libucw.git diff --git a/build/git/hooks/update b/build/git/hooks/update index 856d415b..01baae60 100755 --- a/build/git/hooks/update +++ b/build/git/hooks/update @@ -3,7 +3,6 @@ # Called by git-receive-pack with arguments: refname sha1-old sha1-new # -#recipient="mj@ucw.cz" recipient="sherlock-commits@host2.netcentrum.cz" branch=${1#refs/heads/} @@ -41,7 +40,7 @@ else esac echo git-rev-list --pretty "$3" "^$base" - git-diff "$base" "$3" + git-diff -C "$base" "$3" t=`mktemp -t gitlog.XXXXXXX` git-diff --name-only -r "$base" "$3" >$t while read X ; do @@ -50,9 +49,9 @@ else fi done <$t rm $t -fi +fi exec >&2 -mutt -x -e 'set charset="utf-8"; set allow_8bit=no; set send_charset="utf-8"' -s "$subj" "$recipient" <$out +mutt -x -e 'set charset="utf-8"; set send_charset="us-ascii:iso-8859-2:utf-8"' -s "$subj" "$recipient" <$out rm $out exit 0