From ff0c6fd6395a759e13e5996de70c7dc637405e44 Mon Sep 17 00:00:00 2001 From: mirsella Date: Thu, 10 Sep 2020 15:14:28 +0200 Subject: [PATCH] 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 ? --- forgit.plugin.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forgit.plugin.fish b/forgit.plugin.fish index 3d5ce81..e55c8c8 100755 --- a/forgit.plugin.fish +++ b/forgit.plugin.fish @@ -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