Skip to content
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

make included .git reproducible #452

Open
JanZerebecki opened this issue Aug 11, 2022 · 0 comments
Open

make included .git reproducible #452

JanZerebecki opened this issue Aug 11, 2022 · 0 comments

Comments

@JanZerebecki
Copy link
Member

JanZerebecki commented Aug 11, 2022

When in including vcs data, the .git can be different depending on what was done to it.

Make the archived on reproducible, by cloning a temporary copy of it. That should take care of differences in the .git/config due to local temporary changes. But, not sure if there is an easy way to make git produce consistent pack files.

To make the content reproducible in face of new changes in the repo, make a list of the heads that are considered and store it in the info to be commited to the package source. On verifying reproducibility check that branches are ancestors and tags are not modified. Then modify a temporary copy of the repo to have the heads at that state and make another clone or a git-gc run to get reproducible pack files.

The reason I want to include the .git is that it is the preferred form of modification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant