Skip to content

Commit 1de27f5

Browse files
committed
fix unpatcher to not skip last
1 parent 9be43f7 commit 1de27f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scripts/cdpd-patcher

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ esac
8585
if [ "$UNPATCHER" == "safe" -a -d .git -a "$GBN" != "" ] ; then
8686
wget -nv -O $tmp "http://release.infra.cloudera.com/hwre-api/getcomponentsha?component=${COMPONENT}&gbn=${GBN}"
8787
buildHead="`cat $tmp | jq -r .commit_id`"
88-
echo "$buildHead"
8988
echo "@@@ unpatching jenkins commits from $buildHead"
90-
git log --oneline --author rel-eng@cloudera.com --pretty=format:%H $buildHead..HEAD | while read c;do
89+
h="`git log --oneline --author rel-eng@cloudera.com --pretty=format:%H $buildHead..HEAD`"
90+
for c in $h;do
9191
echo "[!] unpatching: $c"
9292
git show --no-prefix $c | git apply -3 -p0 -R
9393
done

0 commit comments

Comments
 (0)