소스 검색

HADOOP-10926: Improve test-patch.sh to apply binary diffs: fix typo

Colin Patrick Mccabe 10 년 전
부모
커밋
e1f7d654e5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      dev-support/smart-apply-patch.sh

+ 2 - 2
dev-support/smart-apply-patch.sh

@@ -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"
-  [[ -n $DRY_RUN ]] && GIT_FLAGS="$GIT_FLAGS --dry-run "
+  GIT_FLAGS="--binary -p1 -v --stat"
+  [[ -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 $?