Include local copy of HTML::Email::Obfuscate
[girocco.git] / hooks / post-update
blob44f150efd166c0c3c0a81f35ad24e77278bdedd7
1 #!/bin/sh
3 # Prepare a packed repository for use over dumb transports.
4 # Also keep the personal mob area up-to-date if it's enabled.
6 mob=@mob@
7 umask 002
8 git config gitweb.lastchange "$(date '+%a, %d %b %Y %T %z')"
9 git for-each-ref --sort=-committerdate --format='%(committerdate:iso8601)' \
10 --count=1 refs/heads > info/lastactivity
11 if [ "$mob" = "mob" -a -d mob ]; then
12 git show-ref > packed-refs.mob.$$
13 mv -f packed-refs.mob.$$ packed-refs.mob
14 rm -f packed-refs.mob.$$
16 exec git update-server-info