Skip to content

Commit c3efc89

Browse files
Fix error handling in git-with-metadata hook
1 parent fe5c5c9 commit c3efc89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/git-with-metadata.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
GWM_IN_HOOK=
2020
GWM_META="$(mktemp -t gwm-meta.XXXXXX)"
2121

22-
git() { command git "$@" && [ -n "$GWM_IN_HOOK" ] || gwm_hook git "$@"; }
22+
git() { command git "$@" && { [ -n "$GWM_IN_HOOK" ] || gwm_hook git "$@"; }; }
2323
true() { [ -n "$GWM_IN_HOOK" ] || gwm_hook true "$@"; }
2424

2525
gwm_gather() {

0 commit comments

Comments
 (0)