#!/bin/sh output=$(cd /mit/snippets && git reset --hard HEAD 2>&1 && git submodule update --init 2>&1 && git update-server-info 2>&1) echo "Content-type: text/plain" echo if [ "$?" -ne 0 ]; then echo "*** Error output from post-receive hook ***" echo "$output" echo "***" fi /mit/snippets/git-hooks/zephyr-post-receive