Skip to content

Commit

Permalink
WIP add origin_hooks
Browse files Browse the repository at this point in the history
TODO: figure out which hooks we want and what to do with them
  • Loading branch information
miallo committed Jan 9, 2024
1 parent 41fd8a8 commit e213dea
Show file tree
Hide file tree
Showing 29 changed files with 86 additions and 0 deletions.
2 changes: 2 additions & 0 deletions create_challenge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/*

Expand Down
3 changes: 3 additions & 0 deletions src/origin_hooks/applypatch-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/fsmonitor-watchman
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/p4-changelist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/p4-post-changelist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/p4-pre-submit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/p4-prepare-changelist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/post-applypatch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/post-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/post-index-change
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/post-receive
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/post-rewrite
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/post-update
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/pre-applypatch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/pre-auto-gc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/pre-merge-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/pre-rebase
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/pre-receive
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/proc-receive
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/push-to-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/reference-transaction
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/sendemail-validate
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"
3 changes: 3 additions & 0 deletions src/origin_hooks/update
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$0"
echo "$@"

0 comments on commit e213dea

Please sign in to comment.