From 32b7031b6239e9427d0e49f865b597e6d0386e92 Mon Sep 17 00:00:00 2001 From: wolfy Date: Wed, 30 Mar 2022 23:12:23 -0600 Subject: [PATCH] added hooks to autoupdate arm-dependencies --- .githooks/post-update | 10 ++++++++++ .githooks/pre-push | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .githooks/post-update create mode 100644 .githooks/pre-push diff --git a/.githooks/post-update b/.githooks/post-update new file mode 100644 index 000000000..e7c7640cc --- /dev/null +++ b/.githooks/post-update @@ -0,0 +1,10 @@ +#!/bin/sh + +cd arm-dependencies +git pull +cd .. + +if ! [[ -z $(git diff arm-dependencies) ]]; then + git add arm-dependencies + git commit -m "updated dependencies" +fi diff --git a/.githooks/pre-push b/.githooks/pre-push new file mode 100644 index 000000000..e7c7640cc --- /dev/null +++ b/.githooks/pre-push @@ -0,0 +1,10 @@ +#!/bin/sh + +cd arm-dependencies +git pull +cd .. + +if ! [[ -z $(git diff arm-dependencies) ]]; then + git add arm-dependencies + git commit -m "updated dependencies" +fi