HADOOP-11994. smart-apply-patch wrongly assumes that git is infallible. (Contributed by Kengo Seki)

This commit is contained in:
Arpit Agarwal 2015-06-04 10:53:16 -07:00
parent 6ad4e59cfc
commit 8266dae0e9
2 changed files with 7 additions and 1 deletions

View File

@ -101,7 +101,10 @@ if grep -q "^diff --git" "${PATCH_FILE}"; then
fi
# shellcheck disable=SC2086
git apply ${GIT_FLAGS} "${PATCH_FILE}"
exit $?
if [[ $? == 0 ]]; then
cleanup 0
fi
echo "git apply failed. Going to apply the patch with: ${PATCH}"
fi
# Come up with a list of changed files into $TMP

View File

@ -820,6 +820,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-12019. update BUILDING.txt to include python for 'mvn site'
in windows (vinayakumarb)
HADOOP-11994. smart-apply-patch wrongly assumes that git is infallible.
(Kengo Seki via Arpit Agarwal)
Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES