Skip to content

Commit

Permalink
[ci:force] - Script update permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano committed Aug 19, 2024
1 parent 03dabff commit 84026c2
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions scripts/migration/export-commits.sh
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
git fetch

git checkout ng16-migration
git checkout ng16-develop
git pull --rebase
git rebase origin/develop

if [ $? -eq 0 ]; then
git push origin ng16-migration --force --no-verify

git checkout ng16-develop
git reset --hard origin/develop
git push origin ng16-develop --force --no-verify

git checkout ng16-migration
# git pull --rebase
# git rebase origin/develop
git reset --hard origin/ng16-migration

# if [ $? -eq 0 ]; then
# git push origin ng16-migration --force-with-lease --no-verify
# git checkout ng16-develop
# else
# echo -e "\e[31mThere was some error during rebasing of cherry-pick branch\e[0m"
# exit 1;
# fi
git cherry-pick --quit
echo -e "\e[34m===> Merge changes from cherry pick branch: ng15-cherry-pick-list\e[0m"
echo -e "git cherry-pick `git log --pretty=format:"%H" origin/develop..origin/ng15-cherry-pick-list --reverse` -x"
echo -e "\e[34m===> Cherry Picking complete \e[0m"
git checkout ng16-develop
if [ $? -eq 0 ]; then
git cherry-pick --quit
echo -e "\e[34m===> Merge changes from cherry pick branch: ng16-develop cherry pick list\e[0m"
echo -e "git cherry-pick `git log --pretty=format:"%H" origin/develop..origin/ng16-develop --reverse` -x"
echo -e "\e[34m===> Cherry Picking complete \e[0m"
else
echo -e "\e[31mThere was some error during cherry-picking of ng16-develop\e[0m"
exit 1;
fi
else
echo -e "\e[31mThere was some error during rebasing of develop-ng14\e[0m"
exit 1;
Expand Down

0 comments on commit 84026c2

Please sign in to comment.