Skip to content

Commit

Permalink
Merge pull request #15 from abstractdog/CDPD-55160
Browse files Browse the repository at this point in the history
CDPD-55160: cdpd-patcher: add hint message in case of invalid revision range (about possible need of gerrit rebase)
  • Loading branch information
abstractdog authored Apr 21, 2023
2 parents d1733d1 + 1b7a93a commit 3d515e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scripts/cdpd-patcher
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if [ "$UNPATCHER" == "safe" -a -d .git -a "$GBN" != "" ] ; then
wget -nv -O $tmp "http://release.infra.cloudera.com/hwre-api/getcomponentsha?component=${COMPONENT}&gbn=${GBN}"
buildHead="`cat $tmp | jq -r .commit_id`"
echo "@@@ unpatching jenkins commits from $buildHead"
h="`git log --oneline --author rel-eng@cloudera.com --pretty=format:%H $buildHead..HEAD`"
h="`git log --oneline --author rel-eng@cloudera.com --pretty=format:%H $buildHead..HEAD`" || { echo "There is a problem with figuring out a git revision, you should probably rebase your patch on top of the target branch!"; exit 1; }
for c in $h;do
echo "[!] unpatching: $c"
git show --no-prefix $c | git apply -3 -p0 -R
Expand Down

0 comments on commit 3d515e9

Please sign in to comment.