diff options
author | Benjamin C Meyer <ben@meyerhome.net> | 2013-10-20 22:06:11 -0400 |
---|---|---|
committer | Benjamin C Meyer <ben@meyerhome.net> | 2013-10-20 22:06:11 -0400 |
commit | bb1b51854a88ab4f5613fb40ba0abaac559d19aa (patch) | |
tree | b28a7d4ab4de1156e99966023c9291ecb4a5a365 | |
parent | 8b643b7fc18a23fff9a56e96d7723d0dd7fa6331 (diff) | |
download | git-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-x | git-hooks | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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}" |