Set bash in Interactive mode and exit on errors in post-receive hook. #19

Closed
wants to merge 1 commit into
from
Jump to file
+3 −1
Split
@@ -1,4 +1,6 @@
-#!/usr/bin/env bash
+#!/bin/bash -i
+set -e
+
if [ "$GIT_DIR" = "." ]; then
# The script has been called as a hook; chdir to the working copy
cd ..