We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9be43f7 commit 1de27f5Copy full SHA for 1de27f5
src/main/scripts/cdpd-patcher
@@ -85,9 +85,9 @@ esac
85
if [ "$UNPATCHER" == "safe" -a -d .git -a "$GBN" != "" ] ; then
86
wget -nv -O $tmp "http://release.infra.cloudera.com/hwre-api/getcomponentsha?component=${COMPONENT}&gbn=${GBN}"
87
buildHead="`cat $tmp | jq -r .commit_id`"
88
- echo "$buildHead"
89
echo "@@@ unpatching jenkins commits from $buildHead"
90
- git log --oneline --author rel-eng@cloudera.com --pretty=format:%H $buildHead..HEAD | while read c;do
+ h="`git log --oneline --author rel-eng@cloudera.com --pretty=format:%H $buildHead..HEAD`"
+ for c in $h;do
91
echo "[!] unpatching: $c"
92
git show --no-prefix $c | git apply -3 -p0 -R
93
done
0 commit comments