JustAnotherArchivist
7861036624
Add submodule check
#13
1 год назад
JustAnotherArchivist
9a61800758
Refactor Git bundling to allow for verification of the bundle contents
This verifies that all objects from the current clone are in either the dependency bundles or the current bundle. This guarantees that the repo as it has been clone at the time of retrieval can be reconstructed exactly from the bundles.
As a side-effect, if a non-standard Git server were to include objects in a clone pack that are not discoverable from refs, this will fail any attempt to archive such a clone. This could in the future be resolved by adding custom refs for those extra objects.
This also fixes a bug where prior bundles could be included as a dependency even though they contain no relevant data due to their refs (as refs are always listed in the bundle metadata). Instead, dependency detection now operates directly on commit and tag objects, which can only be present in one bundle.
1 год назад
JustAnotherArchivist
cc7bdbb3f4
Fix tag objects not getting deduplicated
1 год назад
JustAnotherArchivist
a361fe54e5
Add a metadata version field
1 год назад
JustAnotherArchivist
811e119835
Add retrieval start/end time metadata fields
1 год назад
JustAnotherArchivist
eab6db9f27
Better storage metadata search now that the module name is recorded there anyway
1 год назад
JustAnotherArchivist
fa4b60225c
Index → Metadata
'Index' was a misnomer from the start since it contains critical information for the operation that can't be reconstructed (e.g. existing refs).
1 год назад
JustAnotherArchivist
4259d34ec8
Set default ID
1 год назад
JustAnotherArchivist
d5891c795c
More metadata
1 год назад
JustAnotherArchivist
a910d4851c
Add support for inheritance of index fields; change type of field list to a tuple to lessen the risk of modification
1 год назад
JustAnotherArchivist
80995bccde
Add comment about FETCH_HEAD
1 год назад
JustAnotherArchivist
2a9ff2ee15
Support empty incremental bundles
1 год назад
JustAnotherArchivist
0e7b17d3fd
Capture and return stderr
1 год назад
JustAnotherArchivist
a6e256c58f
Fix invalid usage of codearchiver.subprocess
Introduced by 240dcceb
1 год назад
JustAnotherArchivist
8e83c9b7b4
Support incremental Git bundles
Also fix a small discrepancy between the commit list and bundle due to --reflog vs --all
1 год назад
JustAnotherArchivist
ed69ba16c9
logger → _logger
1 год назад
JustAnotherArchivist
6f7a95d289
Add --progress option to cloning for more details
1 год назад
JustAnotherArchivist
42e420ad0d
Disable prompts on password-protected repos
1 год назад
JustAnotherArchivist
6af07cb51c
Raise exceptions on fatal errors
1 год назад
JustAnotherArchivist
0f1f5abc64
Add indices for files
1 год назад
JustAnotherArchivist
240dcceb10
Add subprocess wrapper for logging stderr
1 год назад
JustAnotherArchivist
22c707c04f
Add Module.name attribute
4 лет назад
JustAnotherArchivist
7e8958b063
Allow overriding the archive ID
4 лет назад
JustAnotherArchivist
90f80e41a9
Add __repr__ methods
4 лет назад
JustAnotherArchivist
9f6e5a9f48
Move InputURL handling to base Module.__init__ and extract URL string for convenience
4 лет назад
JustAnotherArchivist
07dc1927cf
Initial commit
A significant part of this code (e.g. the module loading, HTTP retrieval, CLI) was mostly or entirely copied from snscrape.
4 лет назад