Skip to content

Commit d6d9148

Browse files
committed
fix: validate commit border is not none
1 parent b00b534 commit d6d9148

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lua/tinygit/config.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ function M.setup(userConfig)
173173
M.config.history.diffPopup.border = fallback
174174
warn(('Border type "none" is not supported, falling back to %q.'):format(fallback))
175175
end
176+
if M.config.commit.border == "none" then
177+
local fallback = defaultConfig.commit.border
178+
M.config.commit.border = fallback
179+
warn(('Border type "none" is not supported, falling back to %q.'):format(fallback))
180+
end
176181

177182
-- VALIDATE `context` > 0 (0 is not supported without `--unidiff-zero`)
178183
-- DOCS https://git-scm.com/docs/git-apply#Documentation/git-apply.txt---unidiff-zero

0 commit comments

Comments
 (0)