HADOOP-10926: Improve test-patch.sh to apply binary diffs: fix typo
This commit is contained in:
parent
a9331fe9b0
commit
e1f7d654e5
|
@ -73,8 +73,8 @@ fi
|
||||||
|
|
||||||
# Special case for git-diff patches without --no-prefix
|
# Special case for git-diff patches without --no-prefix
|
||||||
if is_git_diff_with_prefix "$PATCH_FILE"; then
|
if is_git_diff_with_prefix "$PATCH_FILE"; then
|
||||||
GIT_FLAGS="--binary -p1 -v --stat --apply"
|
GIT_FLAGS="--binary -p1 -v --stat"
|
||||||
[[ -n $DRY_RUN ]] && GIT_FLAGS="$GIT_FLAGS --dry-run "
|
[[ -n $DRY_RUN ]] || GIT_FLAGS="$GIT_FLAGS --apply "
|
||||||
echo Going to apply git patch with: git apply "${GIT_FLAGS}"
|
echo Going to apply git patch with: git apply "${GIT_FLAGS}"
|
||||||
git apply ${GIT_FLAGS} "${PATCH_FILE}"
|
git apply ${GIT_FLAGS} "${PATCH_FILE}"
|
||||||
exit $?
|
exit $?
|
||||||
|
|
Loading…
Reference in New Issue