NeogitOrg / neogit

An interactive and powerful Git interface for Neovim, inspired by Magit
MIT License
3.71k stars 221 forks source link

Fix error params in process.lua #1276

Closed davidmh closed 2 months ago

davidmh commented 2 months ago

Instead of concatenating it's passing the inspected object as a second parameter.

That's throwing an error when files are staged or branches switched from outside Neogit.

CKolkey commented 2 months ago

good catch, though I can't recreate it by staging or switching outside neovim. Still, the second argument should be the level, not another string.

davidmh commented 2 months ago

Fwiw, I've seen it happen in three scenarios: