@@ -981,7 +981,7 @@ local configurations = {
981981--- @param dir string
982982--- @return string Absolute path of current worktree
983983local 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" }
985985 local result = vim .system (cmd , { text = true }):wait ()
986986
987987 return Path :new (vim .trim (result .stdout )):absolute ()
990990--- @param dir string
991991--- @return string Absolute path of ` .git/` directory
992992local 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" }
994994 local result = vim .system (cmd , { text = true }):wait ()
995995
996996 return Path :new (vim .trim (result .stdout )):absolute ()
999999--- @param dir string
10001000--- @return string Absolute path of ` .git/` directory
10011001local 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" }
10031003 local result = vim .system (cmd , { text = true }):wait ()
10041004
10051005 return Path :new (vim .trim (result .stdout )):absolute ()
0 commit comments