feat(forge-checkout): object-format input for sha1 repositories #7
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
HOIST-IT-Actions/actions!7
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/forge-checkout-object-format"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
forge-checkout always sets GIT_DEFAULT_HASH=sha256. In a sha1 repository the fetch then fails with "couldn't find remote ref" and every job dies at checkout; HOIST-IT-Infra/odoo-config hit this on its first run and fell back to the plain checkout action.
The new input
object-format(defaultsha256, so existing callers are unchanged) sets the hash for the checkout and for the exact-SHA reset. The step name shows the format in use.Tested from HOIST-IT-Infra/odoo-config PR #3, which points at this branch with
object-format: sha1: both jobs ran "Checkout (sha1)" and passed (run 9223).After merge this needs a tag (v0.6.0) so sha1 repositories can pin it.