mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 07:16:23 -04:00
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:
parent
522547af28
commit
ff0c6fd639
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue