Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/hooks/post-receive.sh
@@ -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 ..
Expand Down