abhinav / git-spice

Manage stacked Git branches
https://abhinav.github.io/git-spice/
GNU General Public License v3.0
220 stars 11 forks source link

submit: Invalidate template cache if origin/main is updated #370

Closed abhinav closed 1 month ago

abhinav commented 1 month ago

We calculate the template cache key based on the hashes of the files inside the locations in the repository where tempates are stored, but we check their state at $trunk instead of $remote/$trunk.

This results in the cache not being invalidated if the remote has been updated and fetched, but the local ref is behind.

Ref #369

abhinav commented 1 month ago

This change is part of the following stack:

Change managed by git-spice.