New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
monorepo-tools: splitting to an existing repository with signed commits #435
Comments
Hi @dominikkaluza, thanks for reporting the issue. We had the same problem in the past and solved it exactly the same way as you describe - by using
|
I suppose it is theoretically possible to store all data about the signature into the commit msg during building the monorepo and then use this data to recreate exactly the same signed commit during the splitting. I haven't looked into it yet, but it should be possible to store all raw data of the commit encoded in the commit msg (it's possible to store 100MiB there) and during splitting restore the exact commit... This could be a messy and time-consuming workaround, I would suggest to just document this behavior instead (I've created a separate issue #445 for this). We could leave this issue open if someone from the community want to take a look at it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because there was no acivity within the last half a year. |
What is happening
It's not possible to split to an existing repository if the repository contains commits signed by GitHub (typically init commit or merge commits from pull requests).
How to reproduce:
Initialize this repository with a README
option checkedResult:
monorepo_split.sh
fails when trying to push to this repositoryWorkaround:
monorepo_split.sh
and changegit push --tags $REMOTE master
togit push --tags --force $REMOTE master
(this is needed only for the first split,--force
flag can be removed after that)Expected result
monorepo_split.sh
re-signs the commits and pushes them to the existing repository without using the--force
flagThe text was updated successfully, but these errors were encountered: