]> gitweb.fluxo.info Git - git-hooks.git/commitdiff
Add support for pre-push commit hook that was added in Git 1.8.2
authorBenjamin C Meyer <ben@meyerhome.net>
Mon, 21 Oct 2013 02:06:11 +0000 (22:06 -0400)
committerBenjamin C Meyer <ben@meyerhome.net>
Mon, 21 Oct 2013 02:06:11 +0000 (22:06 -0400)
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
git-hooks

index 761e14acd6618cf6d7c074b2710edfd6f06f8035..dd9615ba20f258a25735e18ccf51f3dc6c2ec3f2 100755 (executable)
--- 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}"