This fixes a problem with Neogit is discussed here: https://github.com/NeogitOrg/neogit/discussions/1492