diff options
author | James Zern <jzern@google.com> | 2023-01-19 04:12:57 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-01-19 04:12:57 +0000 |
commit | a3e63109b6986cde4a0c267918c64a025701ba48 (patch) | |
tree | f4d0f567a9e92748ed7c700081f53d1f25063695 | |
parent | 6beccd801aba41265a6340e3ca5c4be1362a1c2e (diff) | |
parent | 8933e324a6c7c5b60c37da34202bbdb816241fd1 (diff) | |
download | libvpx-a3e63109b6986cde4a0c267918c64a025701ba48.tar.gz |
Merge "update_libvpx.sh: remove unneeded commands" am: d0273a7b41 am: 8933e324a6
Original change: https://android-review.googlesource.com/c/platform/external/libvpx/+/2388655
Change-Id: I8e333217e6084b027fca37b3b81487b34574d2ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rwxr-xr-x | update_libvpx.sh | 54 |
1 files changed, 1 insertions, 53 deletions
diff --git a/update_libvpx.sh b/update_libvpx.sh index cfbee1888..f3a19f706 100755 --- a/update_libvpx.sh +++ b/update_libvpx.sh @@ -62,16 +62,10 @@ else fi [ -z "$UPSTREAM_COMMIT" ] \ - && die "Unable to get upstream commit corresponding to ${GIT_BRANCH}"; + && die "Unable to get upstream commit corresponding to ${GIT_BRANCH}"; -# Merge $GIT_BRANCH by allowing unrelated histories and squashing the changes git merge $UPSTREAM_COMMIT -add="$(git diff-index --diff-filter=A $prev_hash | \ -tr -s [:blank:] ' ' | cut -f6 -d\ )" -delete="$(git diff-index --diff-filter=D $prev_hash | \ -tr -s [:blank:] ' ' | cut -f6 -d\ )" - # Get the current commit hash. hash=$(git log $UPSTREAM_COMMIT -1 --format="%H") @@ -84,52 +78,6 @@ echo "Commit: $hash" echo "===============" echo "" -# Commit message header. -echo "Commit message:" -echo "===============" -echo "libvpx: Pull from upstream" -echo "" - -# Output the current commit hash. -echo "Current HEAD: $hash" -echo "" - -# Output log for upstream from current hash. -if [ -n "$prev_hash" ]; then - echo "git log from upstream:" - pretty_git_log="$(git log $UPSTREAM_COMMIT \ - --no-merges \ - --topo-order \ - --pretty="%h %s" \ - --max-count=20 \ - $prev_hash..$hash)" - if [ -z "$pretty_git_log" ]; then - echo "No log found. Checking for reverts." - pretty_git_log="$(git log $UPSTREAM_COMMIT \ - --no-merges \ - --topo-order \ - --pretty="%h %s" \ - --max-count=20 \ - $hash..$prev_hash)" - fi - echo "$pretty_git_log" - # If it makes it to 20 then it's probably skipping even more. - if [ `echo "$pretty_git_log" | wc -l` -eq 20 ]; then - echo "<...>" - fi -fi - -# Commit message footer. -echo "" -echo "===============" - -# Add and remove files. -echo "$add" | xargs -I {} git add {} -echo "$delete" | xargs -I {} git rm --ignore-unmatch {} - -# Find empty directories and remove them. -find . -type d -empty -exec git rm {} \; - # Remove the remote added earlier git remote remove $REMOTE |