File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -183,16 +183,6 @@ function BaseNode:last_group_node()
183183 return node
184184end
185185
186- --- @param path string
187- --- @param callback fun ( toplevel : string | nil , project : table | nil )
188- function BaseNode :reload_and_get_git_project (path , callback )
189- local toplevel = git .get_toplevel (path )
190-
191- git .reload_project (toplevel , path , function ()
192- callback (toplevel , git .get_project (toplevel ) or {})
193- end )
194- end
195-
196186--- @param project table | nil
197187--- @param root string | nil
198188function BaseNode :update_parent_statuses (project , root )
228218--- Refresh contents and git status for a single node
229219function BaseNode :refresh ()
230220 local parent_node = utils .get_parent_of_group (self )
221+ local toplevel = git .get_toplevel (self .absolute_path )
222+
223+ git .reload_project (toplevel , self .absolute_path , function ()
224+ local project = git .get_project (toplevel ) or {}
231225
232- self :reload_and_get_git_project (self .absolute_path , function (toplevel , project )
233226 self .explorer :reload (parent_node , project )
234227
235228 parent_node :update_parent_statuses (project , toplevel )
You can’t perform that action at this time.
0 commit comments