This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake".
The branch, hooks has been updated via 6f2466c503b192c2065bcdc2135137ec5c74ceef (commit) from b9b952190a736e30ef33f2a75cf4aab45bcb3b5a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6f2466c503b192c2065bcdc2135137ec5c74ceef commit 6f2466c503b192c2065bcdc2135137ec5c74ceef Author: Brad King <brad.k...@kitware.com> AuthorDate: Wed Sep 10 16:31:32 2014 -0400 Commit: Brad King <brad.k...@kitware.com> CommitDate: Wed Sep 10 16:31:32 2014 -0400 Add a 'pre-push' hook For now do nothing but chain to a project-specific hook. diff --git a/hooks-config.bash b/hooks-config.bash index afdbf9d..3cb29af 100644 --- a/hooks-config.bash +++ b/hooks-config.bash @@ -59,7 +59,7 @@ hooks_child() { *) prefix="./" ;; esac if test -x "$prefix$child" ; then - "$prefix$child" "$@" + echo "$stdin" | "$prefix$child" "$@" fi } diff --git a/pre-push b/pre-push new file mode 100755 index 0000000..4e7c9fd --- /dev/null +++ b/pre-push @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +#============================================================================= +# Copyright 2010-2014 Kitware, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#============================================================================= + +. "${BASH_SOURCE%/*}/hooks-config.bash" + +# Read all input up front so we can use it and hand it to the chained hook. +stdin="$(cat)" && + +# Chain to project-specific hook. +hooks_chain pre-push "$@" ----------------------------------------------------------------------- Summary of changes: hooks-config.bash | 2 +- prepare-commit-msg => pre-push | 17 ++++------------- 2 files changed, 5 insertions(+), 14 deletions(-) copy prepare-commit-msg => pre-push (62%) hooks/post-receive -- CMake _______________________________________________ Cmake-commits mailing list Cmake-commits@cmake.org http://public.kitware.com/mailman/listinfo/cmake-commits