diff --git a/create_challenge.sh b/create_challenge.sh index cdcbc09..559041f 100755 --- a/create_challenge.sh +++ b/create_challenge.sh @@ -173,6 +173,8 @@ remove_build_setup_from_config add_player_config create_chapter hooks +# origin hooks +cp "$DOCDIR/origin_hooks/"* ".git/my-origin/hooks" # hooks (should be installed last, since they are self-mutating and would be called e.g. by `git commit`) rm .git/hooks/* diff --git a/src/origin_hooks/applypatch-msg b/src/origin_hooks/applypatch-msg new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/applypatch-msg @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/commit-msg b/src/origin_hooks/commit-msg new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/commit-msg @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/fsmonitor-watchman b/src/origin_hooks/fsmonitor-watchman new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/fsmonitor-watchman @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/p4-changelist b/src/origin_hooks/p4-changelist new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/p4-changelist @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/p4-post-changelist b/src/origin_hooks/p4-post-changelist new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/p4-post-changelist @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/p4-pre-submit b/src/origin_hooks/p4-pre-submit new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/p4-pre-submit @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/p4-prepare-changelist b/src/origin_hooks/p4-prepare-changelist new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/p4-prepare-changelist @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/post-applypatch b/src/origin_hooks/post-applypatch new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/post-applypatch @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/post-checkout b/src/origin_hooks/post-checkout new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/post-checkout @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/post-commit b/src/origin_hooks/post-commit new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/post-commit @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/post-index-change b/src/origin_hooks/post-index-change new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/post-index-change @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/post-merge b/src/origin_hooks/post-merge new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/post-merge @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/post-receive b/src/origin_hooks/post-receive new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/post-receive @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/post-rewrite b/src/origin_hooks/post-rewrite new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/post-rewrite @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/post-update b/src/origin_hooks/post-update new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/post-update @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/pre-applypatch b/src/origin_hooks/pre-applypatch new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/pre-applypatch @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/pre-auto-gc b/src/origin_hooks/pre-auto-gc new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/pre-auto-gc @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/pre-commit b/src/origin_hooks/pre-commit new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/pre-commit @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/pre-merge-commit b/src/origin_hooks/pre-merge-commit new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/pre-merge-commit @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/pre-push b/src/origin_hooks/pre-push new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/pre-push @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/pre-rebase b/src/origin_hooks/pre-rebase new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/pre-rebase @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/pre-receive b/src/origin_hooks/pre-receive new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/pre-receive @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/prepare-commit-msg b/src/origin_hooks/prepare-commit-msg new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/prepare-commit-msg @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/proc-receive b/src/origin_hooks/proc-receive new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/proc-receive @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/push-to-checkout b/src/origin_hooks/push-to-checkout new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/push-to-checkout @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/reference-transaction b/src/origin_hooks/reference-transaction new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/reference-transaction @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/sendemail-validate b/src/origin_hooks/sendemail-validate new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/sendemail-validate @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@" diff --git a/src/origin_hooks/update b/src/origin_hooks/update new file mode 100755 index 0000000..82f56b9 --- /dev/null +++ b/src/origin_hooks/update @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +echo "$0" +echo "$@"