Skip to content

Commit b1e012c

Browse files
fix: add missing shebangs to husky hooks for Windows compatibility
1 parent 56135e7 commit b1e012c

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
npx --no -- commitlint --edit $1
23

34
# Append codegraph impact summary if available

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
#!/bin/sh
12
npm run lint
23
codegraph build 2>/dev/null || node src/cli.js build . 2>/dev/null || true

.husky/pre-push

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
IMPACT=$(codegraph diff-impact origin/main --json -T 2>/dev/null || node src/cli.js diff-impact origin/main --json -T 2>/dev/null)
23
if [ -n "$IMPACT" ]; then
34
AFFECTED=$(echo "$IMPACT" | node -e "

0 commit comments

Comments
 (0)