From ed2889fc4dda5734e1178295c2d9536b2a261d99 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 23 Apr 2020 11:05:06 -0700 Subject: [PATCH] Add AOSP preupload hook. Test: repo upload in internal master Change-Id: I8c3604dfa2701d2d82bc60d62562a65a62d7e05e --- PREUPLOAD.cfg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg index 11d9fe624..b4223eaf8 100644 --- a/PREUPLOAD.cfg +++ b/PREUPLOAD.cfg @@ -1,8 +1,9 @@ -[Hook Scripts] -notice = tools/update_notice.sh - [Builtin Hooks] clang_format = true [Builtin Hooks Options] clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp + +[Hook Scripts] +aosp_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "." +notice = tools/update_notice.sh