-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: fix patching cherry picking issues
Signed-off-by: Matthew Fala <[email protected]>
- Loading branch information
1 parent
3088d43
commit 8911319
Showing
3 changed files
with
10 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,14 +88,15 @@ COPY AWS_FLB_CHERRY_PICKS \ | |
RUN git config --global user.email "[email protected]" \ | ||
&& git config --global user.name "FireLens Team" | ||
|
||
RUN AWS_FLB_CHERRY_PICKS_COUNT=`cat /AWS_FLB_CHERRY_PICKS | sed '/^#/d' | sed '/^\s*$/d' | wc -l | awk '{ print $1 }'`; \ | ||
RUN AWS_FLB_CHERRY_PICKS_COUNT=`awk '{print $0 }' /AWS_FLB_CHERRY_PICKS | sed '/^#/d' | sed '/^\s*$/d' | wc -l | awk '{ print $1 }'`; echo $AWS_FLB_CHERRY_PICKS_COUNT; \ | ||
if [ $AWS_FLB_CHERRY_PICKS_COUNT -gt 0 ]; \ | ||
then \ | ||
cat /AWS_FLB_CHERRY_PICKS | sed '/^#/d' \ | ||
| xargs -l bash -c 'git fetch $0 $1 && git cherry-pick $2'; \ | ||
| xargs -l bash -c 'git fetch $0 $1 && git cherry-pick $2 || exit 255' && \ | ||
\ | ||
echo "Cherry Pick Patch Summary:"; \ | ||
(echo "Cherry Pick Patch Summary:"; \ | ||
echo -n "Base "; \ | ||
git log --oneline \ | ||
-$((AWS_FLB_CHERRY_PICKS_COUNT+1)) \ | ||
| tac | awk '{ print "Commit",NR-1,"--",$0 }'; sleep 2; \ | ||
| tac | awk '{ print "Commit",NR-1,"--",$0 }'; sleep 2;)\ | ||
fi |