Merge pull request #42 from Nazeehe/win32_fix
fix lazygit launching on Windows
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user