wfxr / forgit

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

Fix: gsp does not work outside the root directory #386

Closed sandr01d closed 2 months ago

sandr01d commented 2 months ago

Check list

Description

gsp only works when executing it from the repository's root directory. This commit fixes this by passing the root directory to the git ls-files command we use to determine the files that can be stashed, similarly to how we do it in _forgit_reset_head.

Type of change

Test environment

wfxr commented 2 months ago

Thank you @sandr01d, There is a similar issue I found. Could you help fix this too?

sandr01d commented 2 months ago

Thank you @sandr01d, There is a similar issue I found. Could you help fix this too?

Sure, I'll take a look