-
Notifications
You must be signed in to change notification settings - Fork 208
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
Do not force push to secp256k1-zkp branch #68
Comments
…ork due to missing reference See BlockstreamResearch/secp256k1-zkp#68
Uh, hm. It's certainly our practice to rebase secp256k1-zkp from time to time onto secp256k1, and then to force-push branches, and in the best case we would like to keep it that way but I see that this creates problems. First we thought that the problem is that the commit is not in the repo anymore..., so I pushed the branch However I think the problem is that your submodule points to secp256k1-zkp branch and the commit is not on that branch. Or does your submodule work again now? |
Okay, so after reading your comment again, I think the problem was just that the commit was not in the repo anymore. The commit should be there in the repo again, even though the branch has been force-pushed to. Can you confirm that this solves the problem? In the future we'll then need to make sure that we don't remove existing commits from the repo. Otherwise we need to think about a different solution. |
Yes, it does.
Maybe consider naming the branch |
I think in general a policy of not blowing away branches is a good idea.
…On Fri, May 31, 2019, 8:56 AM Tomas Susanka ***@***.***> wrote:
Can you confirm that this solves the problem?
Yes, it does.
In the future we'll then need to make sure that we don't remove existing
commits from the repo.
Maybe consider naming the branch secp256k1-zkp-trezor or similar so it's
clear it is no to be deleted?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#68>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABMAFU5JPRDL5M3UYNIXPD3PYEN6JANCNFSM4HRZPQKQ>
.
|
Yes, it's just a quick fix for now. We'll need to discuss in detail how we do this for future updates, and then we can rename the branch to a proper name or make it tag or something else. |
Sounds good. We need the commit there with a reference, other than that we don't care much. Let me know in case you decide to rename. |
I would suggest forking ElementsProject/secp256k1-zkp under https://github.com/trezor/ (similar to how it's done with vendor/micropython dependency, IIUC). |
@romanz we can do that, but then you will need to file PRs to both trezor/secp256k1-zkp and trezor-firmware to bump the submodule. But yes, it's possible as well. |
Yeah so actually we were happy that we could all changes necessary for Trezor cleanly in secp256k1-zkp so that we don't need to maintain yet another fork. I think we'll want to keep that model. I'll discuss with @apoelstra and come back here. |
Sorry if I was ambiguous, I means as long as there was a canonical way of keeping old(renamed?) branches that's an improvement, even if the default branch is force pushed. |
…ork due to missing reference See BlockstreamResearch/secp256k1-zkp#68
I vote that every time we rebase we simply rename the old branch from |
@real-or-random did you push the old |
Yep, it's here:
edit: yes, sorry, will push again under new name |
Okay, now there is a secp256k1-zkp-2019-05-30 branch: Sorry again for all the trouble! |
Ok! No worries. |
We're using this repository as a submodule in trezor-firmware and we are bound the secp256k1-zkp branch. We are currently locked to commit 9ecd8bf, but this commit is not in the git tree anymore. Try clean clone and check out this commit:
It seems to me someone forced-push into this branch removing any reference to this commit. Is that correct?
The text was updated successfully, but these errors were encountered: