summaryrefslogtreecommitdiff
path: root/PREUPLOAD.cfg
diff options
context:
space:
mode:
author Jack He <siyuanh@google.com> 2018-08-28 14:36:46 -0700
committer Jack He <siyuanh@google.com> 2018-08-28 14:58:46 -0700
commita7faba3e238864a66dd9cc858358b6f3915963b3 (patch)
tree9d8247f7c9a7898dd373f65692b8551855efae39 /PREUPLOAD.cfg
parentfa86dd0e37ab21df4fe482e9e818320005e23db5 (diff)
Upload hook that guides people towards AOSP
The canonical location of certain parts of the source tree live in AOSP, and should not be changed internally to avoid merge conflicts. WARNING only: The PREUPLOAD script warns developer if the change is not uploaded on AOSP. Test: create a CL in master and upload Change-Id: I9a100d86d31ef35d1f4617c75d523724acf8ae60
Diffstat (limited to 'PREUPLOAD.cfg')
-rw-r--r--PREUPLOAD.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index 7fb1636136..380216c21d 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -4,3 +4,6 @@ ignore_merged_commits = true
[Builtin Hooks]
clang_format = true
+[Hook Scripts]
+aosp_first = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} ".*$"
+