Using Gitlab-CI, I have a lot of runners that commit to the same repo. There are more an more commits, and now I face some new problems :
In some cases, there is a git error :
fatal: It seems that there is already a rebase-merge directory, and
I wonder if you are in the middle of another rebase. If that is the
case, please try
git rebase (--continue | --abort | --skip)
If that is not the case, please
rm -fr ".git/rebase-merge"
and run me again. I am stopping in case you still have something
valuable there.
The shell code is the following :
git add ${FILE}
git commit -m "$COMMIT_MESSAGE" -m "$COMMIT_DESCRIPTION" || true
git pull --rebase origin ${CI_COMMIT_REF_NAME}
git push --set-upstream origin ${CI_COMMIT_REF_NAME}
How can I fix such error ?