summaryrefslogtreecommitdiffstats
path: root/shell/apply-submodule-patch-oom.sh
blob: ad818fb8013da94c60f812439cbde2dc3d86b321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2019 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################

# Update kubernetes submodule under oom with patch to be verified

echo '--> apply-submodule-patch-oom.sh'
cd kubernetes/${HELM_MODULE}
remote_path=`git remote -v | grep fetch | awk '{print $2}'`
git fetch ${remote_path} $GERRIT_REFSPEC && git cherry-pick FETCH_HEAD
cd ../..