Created
September 1, 2017 18:27
-
-
Save kklimonda/6bbcf849dfdc3a77648fef4b9a4c7f71 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONTROLLER_PATCHSETS=" | |
34917 | |
34918 | |
34919 | |
34920 | |
34924 | |
34986 | |
35098 | |
" | |
BUILD_PATCHSETS=" | |
34915 | |
34916 | |
" | |
cd controller/ | |
for patchset in $CONTROLLER_PATCHSETS; do | |
hash=$(git ls-remote gerrit | egrep "refs/changes/.*$patchset.*/" | tail -1 | awk '{print $1}') | |
git cherry-pick $hash | |
done | |
cd ../ | |
cd tools/build/ | |
for patchset in $BUILD_PATCHSETS; do | |
hash=$(git ls-remote gerrit | egrep "refs/changes/.*$patchset.*/" | tail -1 | awk '{print $1}') | |
git cherry-pick $hash | |
done | |
cd ../ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment