# Origin: http://blog.gorwits.me.uk/index.html%3Fp=529.html
if [ -z "$3" ]; then
- echo "Usage: $0 PROJECTNAME REPONAME MLIST [prefix]" >&2
+ echo "Usage: $0 PROJECTNAME REPONAME MLIST [prefix [maxlines]]" >&2
exit 1
fi
REPONAME="$2"
MLIST="$3"
prefix="$4"
+maxlines="$5"
cd /home/git/p/"$PROJECTNAME/$REPONAME".git &&
echo "$PROJECTNAME git repository ($REPONAME)" > description
#chmod g+w hooks/post-receive-user &&
git config hooks.diffopts "--stat --summary --find-copies-harder -p"
-git config hooks.emailmaxlines 500 &&
+if [ -n "$maxlines" ]; then
+ git config hooks.emailmaxlines "$maxlines" &&
+fi &&
if [ -n "$prefix" ]; then
git config hooks.emailprefix "$prefix"
fi &&