fixed fish if .forgit wasn't already existing

when using forgit for the first time, the .forgit folder is not
created. forgit::ignore::update, which git glone the repo, was executed
only if the folder existed, so now it execute only if the .forgit don't
exist.

also, there some weird things in the logic with forgit::ignore::update,
some part of the code it not running in any case, since the if test -d
in the fonction is called in a fonction which is called only if the
folder don't exist, or i miss something ?
This commit is contained in:
mirsella 2020-09-10 15:14:28 +02:00
parent 522547af28
commit ff0c6fd639

View file

@ -235,7 +235,7 @@ if test -z "$FORGIT_GI_TEMPLATES"
end
function forgit::ignore
if test -d "$FORGIT_GI_REPO_LOCAL"
if ! test -d "$FORGIT_GI_REPO_LOCAL"
forgit::ignore::update
end