From bb1b51854a88ab4f5613fb40ba0abaac559d19aa Mon Sep 17 00:00:00 2001 From: Benjamin C Meyer Date: Sun, 20 Oct 2013 22:06:11 -0400 Subject: Add support for pre-push commit hook that was added in Git 1.8.2 Signed-off-by: Benjamin C Meyer --- git-hooks | 4 ++-- 1 file 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 +# Copyright (c) 2010-2013, Benjamin C. Meyer # 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}" -- cgit v1.2.3