Permalink
Browse files

Add "post-update" hook to update server info.

The "post-update" hook is derived from the default Git sample one and
does nothing but running git-update-server-info for the repository.
  • Loading branch information...
1 parent 5d3a98d commit 2d8a8a3e5a99f711f897f450353104facdb175bb @bmeurer committed Nov 21, 2009
Showing with 15 additions and 0 deletions.
  1. +1 −0 Makefile
  2. +14 −0 post-update.d/99updateserverinfo
View
@@ -26,6 +26,7 @@ install: all
install -d -m 0755 $(PREFIX)/share/git-generic-hooks/templates/info
install -c -m 0644 exclude $(PREFIX)/share/git-generic-hooks/templates/info/exclude
install -c -m 0755 post-receive.d/99gitnotify $(PREFIX)/share/git-generic-hooks/post-receive.d/99gitnotify
+ install -c -m 0755 post-update.d/99updateserverinfo $(PREFIX)/share/git-generic-hooks/post-update.d/99updateserverinfo
git-generic-hook: git-generic-hook.c
$(CC) $(CFLAGS) -o $@ $<
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# "post-update" hook script to prepare a packed repository for use over
+# dump transports (i.e. http).
+#
+# Copyright (c) 2009 Benedikt Meurer <benedikt.meurer@googlemail.com>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+
+exec git-update-server-info

0 comments on commit 2d8a8a3

Please sign in to comment.