Repository: yetus Updated Branches: refs/heads/YETUS-156 9dfaa98fa -> 1deeebc02
YETUS-356. build driver: author plug-in still mentions patches Signed-off-by: Allen Wittenauer <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/1deeebc0 Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/1deeebc0 Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/1deeebc0 Branch: refs/heads/YETUS-156 Commit: 1deeebc02122bd9058a305525a5eab37a4208a46 Parents: 9dfaa98 Author: Allen Wittenauer <[email protected]> Authored: Tue Apr 12 13:55:17 2016 -0700 Committer: Allen Wittenauer <[email protected]> Committed: Tue Apr 12 15:01:10 2016 -0700 ---------------------------------------------------------------------- precommit/test-patch.d/author.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/1deeebc0/precommit/test-patch.d/author.sh ---------------------------------------------------------------------- diff --git a/precommit/test-patch.d/author.sh b/precommit/test-patch.d/author.sh index 2e148d8..3d6e393 100755 --- a/precommit/test-patch.d/author.sh +++ b/precommit/test-patch.d/author.sh @@ -26,10 +26,17 @@ function author_generic { declare authortags declare i + declare msg + + if [[ "${BUILDMODE}" = full ]]; then + msg="patch" + else + msg="source tree" + fi # shellcheck disable=SC2016 authortags=$(wc -l "${PATCH_DIR}/author-tags.txt" | "${AWK}" '{print $1}') - echo "There appear to be ${authortags} @author tags in the patch." + echo "There appear to be ${authortags} @author tags in the ${msg}." if [[ ${authortags} != 0 ]] ; then add_vote_table -1 @author \ "${BUILDMODEMSG} appears to contain ${authortags} @author tags which the" \
