@@ -981,7 +981,7 @@ local configurations = {
981
981
--- @param dir string
982
982
--- @return string Absolute path of current worktree
983
983
local function worktree_root (dir )
984
- local cmd = { " git" , " -C" , dir , " rev-parse" , " --show-toplevel" , " --path-format=absolute " }
984
+ local cmd = { " git" , " -C" , dir , " rev-parse" , " --show-toplevel" }
985
985
local result = vim .system (cmd , { text = true }):wait ()
986
986
987
987
return Path :new (vim .trim (result .stdout )):absolute ()
990
990
--- @param dir string
991
991
--- @return string Absolute path of ` .git/` directory
992
992
local function git_dir (dir )
993
- local cmd = { " git" , " -C" , dir , " rev-parse" , " --git-common-dir" , " --path-format=absolute " }
993
+ local cmd = { " git" , " -C" , dir , " rev-parse" , " --git-common-dir" }
994
994
local result = vim .system (cmd , { text = true }):wait ()
995
995
996
996
return Path :new (vim .trim (result .stdout )):absolute ()
999
999
--- @param dir string
1000
1000
--- @return string Absolute path of ` .git/` directory
1001
1001
local function worktree_git_dir (dir )
1002
- local cmd = { " git" , " -C" , dir , " rev-parse" , " --git-dir" , " --path-format=absolute " }
1002
+ local cmd = { " git" , " -C" , dir , " rev-parse" , " --git-dir" }
1003
1003
local result = vim .system (cmd , { text = true }):wait ()
1004
1004
1005
1005
return Path :new (vim .trim (result .stdout )):absolute ()
0 commit comments