openlawlibrary / taf

The Archive Framework
GNU Affero General Public License v3.0
10 stars 10 forks source link

Update when auth repo's top commit is behind last validated commit #486

Closed renatav closed 1 month ago

renatav commented 4 months ago

At the moment, I believe that update will fail if the last validated commit is not in the repository's git history. It's a lot trickier when the top commit is behind the last validated commit, as it is not as easy to verify that the last validated commit is actually valid. Something like this can happen when someone runs the updater. The updater will update last validated commit (content of the last_validated_commit file) automatically. If the user then removes some commits from the repo, the top commit of their local repository will be behind the last validated commit. We could do the following: