@ghl-ai/aw 0.1.30-beta.5 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hooks.mjs +5 -0
- package/package.json +1 -1
package/hooks.mjs
CHANGED
|
@@ -24,6 +24,9 @@ function makeDispatcher(hookName, awBlock) {
|
|
|
24
24
|
# aw: global ${hookName} dispatcher (installed by aw init)
|
|
25
25
|
# Chains to local hooks — see https://git-scm.com/docs/githooks
|
|
26
26
|
|
|
27
|
+
# Skip if inside aw's own temp sparse checkout (prevents recursion)
|
|
28
|
+
case "$(pwd)" in /tmp/aw-*|/var/folders/*/aw-*) exit 0 ;; esac
|
|
29
|
+
|
|
27
30
|
${awBlock}
|
|
28
31
|
|
|
29
32
|
# Chain to previous hooksPath (if another tool set it before aw)
|
|
@@ -41,6 +44,8 @@ if [ -n "$GIT_DIR" ]; then
|
|
|
41
44
|
LOCAL_HOOK="$GIT_DIR/hooks/${hookName}"
|
|
42
45
|
[ -x "$LOCAL_HOOK" ] && exec "$LOCAL_HOOK" "$@"
|
|
43
46
|
fi
|
|
47
|
+
|
|
48
|
+
exit 0
|
|
44
49
|
`;
|
|
45
50
|
}
|
|
46
51
|
|