aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack He <siyuanh@google.com>2018-08-28 14:36:46 -0700
committerJack He <siyuanh@google.com>2018-08-28 14:58:46 -0700
commit69b30f4f5556ead45b5e39a6c51ce22cd4a91197 (patch)
tree80fc83de82ed052b55d91023b8e76bd903fb8790
parentd03538c69b04780eafdc62b2f0c5f4b3efc27b39 (diff)
downloadbt-69b30f4f5556ead45b5e39a6c51ce22cd4a91197.tar.gz
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
-rw-r--r--PREUPLOAD.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index 7fb163613..380216c21 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} ".*$"
+