Skip to content

Commit 2cc4096

Browse files
author
Stephen Martinez
committed
[NewBugFound] Found a new bug where we should check if the found hook is executable
1 parent d56ff93 commit 2cc4096

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/CommitPrefix/CommitMessageHook.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ public struct CommitMessageHook {
181181
print("Overwritting existing commit-msg with generated hook")
182182

183183
do {
184+
// TODO: - Theres a case where the file is not executable in the first place this will not correct that
184185
try commitHookFile.write(contents, encoding: .utf8)
185186
} catch {
186187
throw CPError.hookReadWriteError

0 commit comments

Comments
 (0)