aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin C Meyer <ben@meyerhome.net>2013-10-20 22:06:11 -0400
committerBenjamin C Meyer <ben@meyerhome.net>2013-10-20 22:06:11 -0400
commitbb1b51854a88ab4f5613fb40ba0abaac559d19aa (patch)
treeb28a7d4ab4de1156e99966023c9291ecb4a5a365
parent8b643b7fc18a23fff9a56e96d7723d0dd7fa6331 (diff)
downloadgit-hooks-bb1b51854a88ab4f5613fb40ba0abaac559d19aa.tar.gz
git-hooks-bb1b51854a88ab4f5613fb40ba0abaac559d19aa.tar.bz2
Add support for pre-push commit hook that was added in Git 1.8.2
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
-rwxr-xr-xgit-hooks4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-hooks b/git-hooks
index 761e14a..dd9615b 100755
--- a/git-hooks
+++ b/git-hooks
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
-# Copyright (c) 2010-2012, Benjamin C. Meyer <ben@meyerhome.net>
+# Copyright (c) 2010-2013, Benjamin C. Meyer <ben@meyerhome.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -100,7 +100,7 @@ function install_hooks
mv hooks hooks.old
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
+ 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
do
echo '#!/bin/bash
git-hooks run "$0" "$@"' > "${file}"