diff options
author | Stephen Cprek <smcprek@us.ibm.com> | 2015-09-24 11:38:53 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-09-29 13:22:47 -0500 |
commit | 4fab389f133585edd833edd0aeb31f6957432f47 (patch) | |
tree | 305b24c486561e0af2d355c1e682f89368571e78 /src/build | |
parent | 91841a86cff6ae03c7a273550e4d00e5e3b2c6a1 (diff) | |
download | talos-hostboot-4fab389f133585edd833edd0aeb31f6957432f47.tar.gz talos-hostboot-4fab389f133585edd833edd0aeb31f6957432f47.zip |
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 <pragupta@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build')
-rwxr-xr-x | src/build/tools/post-commit | 5 | ||||
-rwxr-xr-x | src/build/tools/pre-commit | 5 |
2 files changed, 6 insertions, 4 deletions
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 |