From 4fab389f133585edd833edd0aeb31f6957432f47 Mon Sep 17 00:00:00 2001 From: Stephen Cprek Date: Thu, 24 Sep 2015 11:38:53 -0500 Subject: Disable git hooks when running mirror tool from another repo Change-Id: Ic2953f6f375996002c6d7a464c2af9697bfe0179 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20764 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: PRACHI GUPTA Reviewed-by: A. Patrick Williams III --- src/build/tools/post-commit | 5 +++-- src/build/tools/pre-commit | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/build/tools/post-commit b/src/build/tools/post-commit index ab0f6ad1e..4ad1ec206 100755 --- a/src/build/tools/post-commit +++ b/src/build/tools/post-commit @@ -23,5 +23,6 @@ # permissions and limitations under the License. # # IBM_PROLOG_END_TAG - -$TOOLSDIR/verify-commit +if [ -z $MIRROR ]; then + $TOOLSDIR/verify-commit +fi diff --git a/src/build/tools/pre-commit b/src/build/tools/pre-commit index 013e42329..ed0187771 100755 --- a/src/build/tools/pre-commit +++ b/src/build/tools/pre-commit @@ -23,5 +23,6 @@ # permissions and limitations under the License. # # IBM_PROLOG_END_TAG - -$TOOLSDIR/pre-commit-actions +if [ -z $MIRROR ]; then + $TOOLSDIR/pre-commit-actions +fi -- cgit v1.2.3