Commit Briefs

Omar Polo

run more tests in sha256 mode (main)

Since we've been quickly expanded the support for sha256, instead of making the regress "opt-in", make them "opt-out". Basically, only the regress that are reaching the network protocol code needs to be disabled as of now in sha256 mode (until we add support for git protocol v2).


Omar Polo

gotadmin: add flag to `init' to choose the hashing algorithm

Do the same for `got init' too obviously. Repositories created via `clone' are implicitly sha1 since we don't speak the v2 protocol (yet). ok stsp@


Omar Polo

gotadmin: show hashing algorithm in `info' output

part of a larger diff that's ok stsp@


Omar Polo

load: support bundle v3

The counterpart of generating v3 bundles is to load them.


Omar Polo

generate bundles v3 when in sha256 repos

bundles v2 don't have a way to specify the object-format and so they can't work in sha256 mode; v3 adds a some "capabilities" so that it's possible to specify the object-format (and also other things that we aren't interested in actually.)


Omar Polo

support to create/index sha256 packfiles

in a few cases, an array of SHA1_DIGEST_LENGTH has been converted to a struct got_object_id to simplify the handling.


Omar Polo

create sha256 bare objects


Omar Polo

fileindex: improve unexpected object-format error message

suggested by stsp





Omar Polo

regress: run gotadmin pack/cleanup -r instead of cd'ing

This way core files will be left in the current directory instead that in the test one that is going to be immediately removed.


Omar Polo

set the `algo' field in a few forgotten cases

These were a bit hard to find. We set the id to 0xff[...] so they sort later, but the algo also needs to be set correctly.


Omar Polo

fix the patch code for sha256

extra (dumbiness) point for me to having chosen to use "41" instead of SHA1_DIGEST_STRING_LENGTH originally!