updateref: Support repositories using SHA256 object hashes
The updateref package needs to be able to verify object hashes, which mandates that it must be able to tell which object hash format a repo is using and to provide the correct zero object ID. Add object hash detection logic and enable testing the package with SHA256.
Showing
- internal/git/updateref/update_with_hooks.go 14 additions, 7 deletionsinternal/git/updateref/update_with_hooks.go
- internal/git/updateref/update_with_hooks_test.go 0 additions, 2 deletionsinternal/git/updateref/update_with_hooks_test.go
- internal/git/updateref/updateref.go 13 additions, 6 deletionsinternal/git/updateref/updateref.go
- internal/git/updateref/updateref_test.go 0 additions, 2 deletionsinternal/git/updateref/updateref_test.go
Please register or sign in to comment