Page MenuHomeSoftware Heritage

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

Authored by vlorentz on Jan 7 2020, 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

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.Jan 7 2020, 5:51 PM