OpenBagTwo / gsb

A tool for managing incremental backups of your save states using Git!
https://openbagtwo.github.io/gsb/
GNU General Public License v3.0
0 stars 0 forks source link

Rewind fails (to tag) #42

Closed OpenBagTwo closed 9 months ago

OpenBagTwo commented 9 months ago

Summary

Performing `gsb rewind' produces the error

<commit hash>: tag already exists

and the restored version doesn't show up at the top of gsb history

Environment and Version

Steps to Reproduce

Perform a gsb rewind when you have unsaved changes

Workaround

I believe the issue is just tagging. If I do a git diff of the HEAD and the backup I was attempting to restore, I get that they match. Furthermore, git log shows the most recent commit as having the expected "restored" message.

I also think this could be avoided by doing a gsb backup --tag before doing the restore (so that there's nothing to back up before rewinding).

Severity

Annoying. Especially since the restored backups are not annotated as such. Also the error message seems wrong, since the duplicate tag name isn't shown, just a commit hash.

Desired Outcome

Fix

Urgency

By next minor release

Notes

Two issues:

Separately there should probably be an option to delete a backup that's been restored (and that option should perhaps be the default).

OpenBagTwo commented 9 months ago

So that's not actually the commit hash--it's... the tag object's hash?