You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by aw...@apache.org on 2015/07/13 19:12:45 UTC

hadoop git commit: HADOOP-12187. Whitespace plugin shows unexpected error messages if gitdiffcontent is empty (Kengo Seki via aw)

Repository: hadoop
Updated Branches:
  refs/heads/HADOOP-12111 fed76980c -> f22ec7e8b


HADOOP-12187. Whitespace plugin shows unexpected error messages if gitdiffcontent is empty (Kengo Seki via aw)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/f22ec7e8
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/f22ec7e8
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/f22ec7e8

Branch: refs/heads/HADOOP-12111
Commit: f22ec7e8bf04fdaf1f3653b6fad7066fe8c6bb53
Parents: fed7698
Author: Allen Wittenauer <aw...@apache.org>
Authored: Mon Jul 13 10:12:35 2015 -0700
Committer: Allen Wittenauer <aw...@apache.org>
Committed: Mon Jul 13 10:12:35 2015 -0700

----------------------------------------------------------------------
 dev-support/test-patch.sh | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/f22ec7e8/dev-support/test-patch.sh
----------------------------------------------------------------------
diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh
index 4b6b263..327e6f1 100755
--- a/dev-support/test-patch.sh
+++ b/dev-support/test-patch.sh
@@ -625,6 +625,14 @@ function compute_gitdiff
       IFS=${oldifs}
     fi
   done < <("${GIT}" diff --unified=0 --no-color)
+
+  if [[ ! -f ${GITDIFFLINES} ]]; then
+    touch "${GITDIFFLINES}"
+  fi
+  if [[ ! -f ${GITDIFFCONTENT} ]]; then
+    touch "${GITDIFFCONTENT}"
+  fi
+
   popd >/dev/null
 }