Merge pull request #42 from Nazeehe/win32_fix

fix lazygit launching on Windows
This commit is contained in:
Dheepak Krishnamurthy
2021-07-21 13:09:21 -06:00
committed by GitHub

View File

@@ -19,9 +19,11 @@ end
--- Get project_root_dir for git repository
local function project_root_dir()
-- always use bash
-- always use bash on Unix based systems.
local oldshell = vim.o.shell
vim.o.shell = 'bash'
if vim.fn.has('win32') == 0 then
vim.o.shell = 'bash'
end
-- try submodule first
local gitdir = fn.system('cd "' .. fn.expand('%:p:h') .. '" && git rev-parse --show-superproject-working-tree')