Skip to content

Commit

Permalink
#912: HUSKY_GIT_PARAMS
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed May 17, 2023
1 parent bf9e4f3 commit 5c279fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .husky/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ echo "#$TICKETID: " > ".git/templatemessage"
# ### run npm install ###
IFS=$'\n'
# extract all paths to package-lock.json files
PACKAGES=`git diff --name-only HEAD^1 HEAD | grep -E '(^package-lock\.json)'`
PACKAGES=`git diff --name-only $1 HEAD | grep -E '(^package-lock\.json)'`
echo "[POST-CHECKOUT-4]"

if [[ ${PACKAGES[@]} ]]; then
Expand Down
2 changes: 1 addition & 1 deletion .husky/post-merge
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

IFS=$'\n'
# extract all paths to package-lock.json files
PACKAGES=`git diff --name-only HEAD^1 HEAD | grep -E '(^package-lock\.json)'`
PACKAGES=`git diff --name-only HEAD@{1} HEAD | grep -E '(^package-lock\.json)'`
echo "[POST-MERGE-4]"

if [[ ${PACKAGES[@]} ]]; then
Expand Down

0 comments on commit 5c279fb

Please sign in to comment.