Page MenuHomeSoftware Heritage

Fix support of VCSs whose HEAD branch is an alias.
ClosedPublic

Authored by vlorentz on Tue, Jan 7, 5:46 PM.

Details

Summary

Removing these methods causes the indexer to fall back to
the default (_try_get_head_generic), which already does
the right thing.

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vlorentz created this revision.Tue, Jan 7, 5:46 PM
vlorentz updated this revision to Diff 8902.Tue, Jan 7, 5:49 PM

update comment

olasd accepted this revision.Tue, Jan 7, 5:51 PM
olasd added a subscriber: olasd.

All this logic should probably end up in swh.storage.algorithms, because I'm sure swh.web also has a subtly different algorithm to pick a default branch.

This revision is now accepted and ready to land.Tue, Jan 7, 5:51 PM
This revision was automatically updated to reflect the committed changes.