summaryrefslogtreecommitdiffstats
path: root/src/build/tools/pre-commit
diff options
context:
space:
mode:
authorStephen Cprek <smcprek@us.ibm.com>2015-09-24 11:38:53 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-09-29 13:22:47 -0500
commit4fab389f133585edd833edd0aeb31f6957432f47 (patch)
tree305b24c486561e0af2d355c1e682f89368571e78 /src/build/tools/pre-commit
parent91841a86cff6ae03c7a273550e4d00e5e3b2c6a1 (diff)
downloadtalos-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/tools/pre-commit')
-rwxr-xr-xsrc/build/tools/pre-commit5
1 files changed, 3 insertions, 2 deletions
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
OpenPOWER on IntegriCloud