Skip to content

Commit c81ee10

Browse files
committed
chore(hook): update file permission to 755
- Change file permissions for the hook file from `0o600` to `0o755` Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 62a3c8d commit c81ee10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git/git.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ func (c *Command) InstallHook() error {
178178
return err
179179
}
180180

181-
return os.WriteFile(target, content, 0o600)
181+
// Write the hook file with executable permissions (0o755)
182+
return os.WriteFile(target, content, 0o755) //nolint:gosec
182183
}
183184

184185
func (c *Command) UninstallHook() error {

0 commit comments

Comments
 (0)