-
Notifications
You must be signed in to change notification settings - Fork 87
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
Archives created with --format tar.gz and --format zip aren't reproducible #31
Comments
Huh. What happens if you add the
Could perhaps the timestamp added to the gzip file header be causing a discrepancy? |
You can export |
@Mic92, thanks for the tip. I can confirm this works:
adding |
I think this should just be added in by default. In the script |
I've created a simple Bash script reproducibility-test.sh to test the reproducibility of various
--format
options. I've also compared it togit
's built-inarchive
command.Here are sample results for a git repo with submodules:
As can be seen from the results,
git
's built-inarchive
command always creates reproducible archives, regardless of the--format
option.On the contrary,
git-archive-all.sh
only creates reproducible archives with the--format tar
option.The text was updated successfully, but these errors were encountered: