Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6733d0ef authored by Christopher Ferris's avatar Christopher Ferris Committed by Automerger Merge Worker
Browse files

Merge "Add a cherry-pick exception." am: 95100334

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1711190

Change-Id: I5263965d8252b7bddfafe7b51ba0456738214426
parents 719831b9 95100334
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
@@ -5,7 +5,21 @@ if git branch -vv | grep -q -P "^\*[^\[]+\[aosp/"; then
    # Change appears to be in AOSP
    exit 0
else
    # Change appears to be non-AOSP; search for files
    # Change appears to be non-AOSP.

    # If this is a cherry-pick, then allow it.
    cherrypick=0
    while read -r line ; do
      if [[ $line =~ cherry\ picked\ from  ]] ; then
        (( cherrypick++ ))
      fi
    done < <(git show $1)
    if (( cherrypick != 0 )); then
      # This is a cherry-pick, so allow it.
      exit 0
    fi

    # See if any files are affected.
    count=0
    while read -r file ; do
        if (( count == 0 )); then