diff options
author | Benjamin C Meyer <ben@meyerhome.net> | 2013-10-23 23:14:03 -0400 |
---|---|---|
committer | Benjamin C Meyer <ben@meyerhome.net> | 2013-10-23 23:16:15 -0400 |
commit | 1d2b74a54a69f741289b0cbebc47564043c5fe0d (patch) | |
tree | b51790bc9a6e30d9d324af6b5c9ca87788f46339 | |
parent | 187f23820f43e962acbeab788d5a96d5d59bd51e (diff) | |
download | git-hooks-1d2b74a54a69f741289b0cbebc47564043c5fe0d.tar.gz git-hooks-1d2b74a54a69f741289b0cbebc47564043c5fe0d.tar.bz2 |
In the event we can't rename hooks we should immediately fail.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
-rwxr-xr-x | git-hooks | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -99,7 +99,9 @@ function install_hooks echo "hooks.old already exists, perhaps you already installed?" return 1 fi + set -e mv hooks hooks.old + set +e mkdir hooks cd hooks for file in applypatch-msg commit-msg post-applypatch post-checkout post-commit post-merge post-receive pre-applypatch pre-auto-gc pre-commit prepare-commit-msg pre-rebase pre-receive update pre-push |