From: Oleg Broytman Date: Sun, 5 Jul 2015 00:07:27 +0000 (+0300) Subject: Configure receive.updateserverinfo instead of post-checkout hook X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=1ed5bdc5e2239bf1fe7a76bcd0c19c0f4c8a49a0;p=git-scripts.git Configure receive.updateserverinfo instead of post-checkout hook Run git update-server-info instead of post-checkout. --- diff --git a/publish2web b/publish2web index af746e6..35faf01 100755 --- a/publish2web +++ b/publish2web @@ -21,7 +21,7 @@ cd "$dest_dir" && git gc --aggressive && git repack -a -d -f --depth=20 --window=250 && git fsck --strict && -cp -p hooks/post-update.sample hooks/post-update && hooks/post-update && +git config receive.updateserverinfo true && git update-server-info && cp -p "$HOME"/Internet/WWW/htdocs/git.phdru.name/phdru.name/phdru.name.git/git-daemon-export-ok . && if [ "`cat \"$source_dir\"/.git/description`" = \ "Unnamed repository; edit this file 'description' to name the repository." ]