diff --git a/.husky/post-checkout b/.husky/post-checkout index c2a84ae99..eac9a9a7c 100644 --- a/.husky/post-checkout +++ b/.husky/post-checkout @@ -10,15 +10,12 @@ echo "#$TICKETID: " > ".git/templatemessage" # ### run npm install ### echo "[POST-CHECKOUT] 📦 Checking for changes to dependencies" -# set -x # define how to split strings into array elements IFS=$'\n' # $1 is the new HEAD pointer NEWHEAD=$1 -# NEWHEAD="5c279fb876053499698b996b10447a367cd05b95" # $2 is the previous HEAD pointer OLDHEAD=$2 -# OLDHEAD="16d12bd271e22a1e0b5dc3a8dcbb4bf3327cb867" # extract all paths to package-lock.json files PACKAGE_LOCK_REGEX="(^package-lock\.json)" PACKAGES=$(git diff --name-only $NEWHEAD $OLDHEAD | grep -E $PACKAGE_LOCK_REGEX || true) @@ -32,4 +29,3 @@ if [[ ${PACKAGES[@]} ]]; then else echo "📦 All packages up-to-date. No need to run npm install." fi -# set +x \ No newline at end of file diff --git a/.husky/post-merge b/.husky/post-merge index 2a0063d63..06f668cd4 100644 --- a/.husky/post-merge +++ b/.husky/post-merge @@ -8,7 +8,6 @@ echo "[POST-MERGE] 📦 Checking for changes to dependencies" IFS=$'\n' # extract all paths to package-lock.json files PACKAGE_LOCK_REGEX="(^package-lock\.json)" -# 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_REGEX || true) if [[ ${PACKAGES[@]} ]]; then diff --git a/912-test.txt b/912-test.txt deleted file mode 100644 index 81403e41b..000000000 --- a/912-test.txt +++ /dev/null @@ -1 +0,0 @@ -test 2 \ No newline at end of file