Merge branch 'main' of https://github.com/steveyegge/beads
This commit is contained in:
1369
.beads/beads.jsonl
1369
.beads/beads.jsonl
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -421,6 +421,23 @@ func hooksInstalled() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// Verify hooks are executable
|
||||
preCommitInfo, err := os.Stat(preCommit)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
if preCommitInfo.Mode().Perm()&0111 == 0 {
|
||||
return false // Not executable
|
||||
}
|
||||
|
||||
postMergeInfo, err := os.Stat(postMerge)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
if postMergeInfo.Mode().Perm()&0111 == 0 {
|
||||
return false // Not executable
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user