Fix issue where gitignore cache was not being properly set up

fix #161
This commit is contained in:
Chris Apple 2021-08-02 09:15:02 -07:00 committed by GitHub
parent 339d364305
commit 9f3a423920
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -376,7 +376,7 @@ if test -z "$FORGIT_GI_REPO_REMOTE"
end
if test -z "$FORGIT_GI_REPO_LOCAL"
if test "XDG_CACHE_HOME"
if test -z "XDG_CACHE_HOME"
set -g FORGIT_GI_REPO_LOCAL $XDG_CACHE_HOME/forgit/gi/repos/dvcs/gitignore
else
set -g FORGIT_GI_REPO_LOCAL $HOME/.cache/forgit/gi/repos/dvcs/gitignore