Get tests passing again.
[git-central.git] / server / post-receive-gitconfig
old mode 100644 (file)
new mode 100755 (executable)
index 46ab3e4..ee4c22d
@@ -1,4 +1,6 @@
-#!/bin/sh
+#!/bin/bash
+#
+# Copyright (c) 2008 Stephen Haberman
 #
 # Auto-deploys the contents of the gitconfig branch to $GIT_DIR.
 #
@@ -30,6 +32,11 @@ while read oldrev newrev refname ; do
                                git cat-file blob "$file_hash" > "hooks/$file_name"
                        done
                fi
+
+               git ls-tree $newrev | grep -v hooks | grep -v config | grep blob | while read mode type file_hash file_name ; do
+                       echo "Installing $file_name"
+                       git cat-file blob "$file_hash" > "$file_name"
+               done
        fi
 done