aboutsummaryrefslogtreecommitdiff
path: root/git/template/hooks/post-update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git/template/hooks/post-update.sh')
-rw-r--r--git/template/hooks/post-update.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/git/template/hooks/post-update.sh b/git/template/hooks/post-update.sh
new file mode 100644
index 00000000..7199a513
--- /dev/null
+++ b/git/template/hooks/post-update.sh
@@ -0,0 +1,4 @@
+bare=$(git config core.bare)
+case $bare in
+ true) git update-server-info ;;
+esac