]> git.phdru.name Git - git-scripts.git/commitdiff
Configure receive.updateserverinfo instead of post-checkout hook
authorOleg Broytman <phd@phdru.name>
Sun, 5 Jul 2015 00:07:27 +0000 (03:07 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 5 Jul 2015 00:07:27 +0000 (03:07 +0300)
Run git update-server-info instead of post-checkout.

publish2web

index af746e6dfaecc7d6808aa14a38beee282f8fb341..35faf015e344fa253047c44e6316d34c75fa3168 100755 (executable)
@@ -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." ]