From 1ed5bdc5e2239bf1fe7a76bcd0c19c0f4c8a49a0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 5 Jul 2015 03:07:27 +0300 Subject: [PATCH] Configure receive.updateserverinfo instead of post-checkout hook Run git update-server-info instead of post-checkout. --- publish2web | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." ] -- 2.39.5