We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0616ff0 + 0dd2a66 commit fc00cc8Copy full SHA for fc00cc8
CHANGELOG.md
@@ -1,5 +1,11 @@
1
# Change Log
2
3
+## [Unreleased](https://ci.appveyor.com/project/MartiUK/cmder/build/artifacts) (2022-03-17)
4
+
5
+### Changes
6
7
+- Fix Git prompt branch when using Git worktree.
8
9
## [1.3.19](https://github.com/cmderdev/cmder/tree/v1.3.19) (2022-01-15)
10
11
### Changes
vendor/clink.lua
@@ -256,6 +256,12 @@ local function get_git_dir(path)
256
local git_dir = gitfile:read():match('gitdir: (.*)')
257
gitfile:close()
258
259
+ if os.isdir then -- only available in Clink v1.0.0 and higher
260
+ if git_dir and os.isdir(git_dir) then
261
+ return git_dir
262
+ end
263
264
265
return git_dir and dir..'/'..git_dir
266
end
267
0 commit comments