wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.32k stars 136 forks source link

Preview does not work when stashing a deleted file #333

Closed sandr01d closed 3 months ago

sandr01d commented 5 months ago

Check list

Environment info

Problem

When stashing a file that has been deleted, the following error message is displayed instead of a preview:

fatal: ambiguous argument 'README.md': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:                                                          │
'git <command> [<revision>...] -- [<file>...]

Stashing does work as expected though. I will go after this once #326 is merged, so I don't have to do the work twice.

Steps to reproduce

  1. Delete any file that is tracked by git
  2. Execute gsp and select the file you just deleted