commit: a44338cc0b08192d45c6e1926ec52e13c5db85e6
parent: bf783d05f6f7c33d50efdc375e134d934a46c936
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 10 May 2017 21:54:15 +0200
Merge NightmareMoon
Diffstat:
1 file changed, 21 insertions(+), 0 deletions(-)
diff --git a/git-hooks/post-update b/git-hooks/post-update
@@ -0,0 +1,21 @@
+#!/bin/sh
+repo=$(pwd)
+update_f=' * Updating %s…'
+is_ok(){ echo ' [OK]'; }
+
+printf "$update_f" 'Garbage Collector'
+git gc && is_ok
+
+printf "$update_f" info
+git update-server-info && is_ok
+
+printf "$update_f" stagit
+cd "$(pwd | sed s/.git$//)" && stagit -c "$repo.cache" "$repo" && is_ok
+
+printf "$update_f" stagit-index
+cd /git && stagit-index *.git > /git/index.html && is_ok
+
+for i in post-update.*; do
+ printf "$update_f" "running other hook: $i"
+ exec $i
+done