diff options
| author | Julian Blake Kongslie | 2020-11-25 09:05:18 -0800 |
|---|---|---|
| committer | Julian Blake Kongslie | 2020-11-25 10:51:38 -0800 |
| commit | 6e03668c415c83a8a83218fcb96dc430d9eebaed (patch) | |
| tree | ec6294e91a5938445e068e3d98e571946dc3b06d /examples/olamic-githook-post-receive | |
| parent | Initial version. (diff) | |
| download | olamic-6e03668c415c83a8a83218fcb96dc430d9eebaed.tar.xz | |
Change the example githook to remove a level of indirection.
Diffstat (limited to 'examples/olamic-githook-post-receive')
| -rwxr-xr-x | examples/olamic-githook-post-receive | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/olamic-githook-post-receive b/examples/olamic-githook-post-receive index 3135d0d..4c71703 100755 --- a/examples/olamic-githook-post-receive +++ b/examples/olamic-githook-post-receive | |||
| @@ -11,13 +11,9 @@ while read OLD NEW REF; do | |||
| 11 | OLAMIC_EMAIL="$(git show --no-patch --format=%ae "$NEW")" | 11 | OLAMIC_EMAIL="$(git show --no-patch --format=%ae "$NEW")" |
| 12 | echo -n "Enqueuing olamic run for $REF: " | 12 | echo -n "Enqueuing olamic run for $REF: " |
| 13 | if [[ "$OLAMIC_QUEUE_HOST" == "" ]]; then | 13 | if [[ "$OLAMIC_QUEUE_HOST" == "" ]]; then |
| 14 | olamic-enqueue "$OLAMIC_QUEUE_DIR" "$OLAMIC_GIT_REPO" "$NEW" GIT_REF="$REF" OLAMIC_EMAIL="$OLAMIC_EMAIL" <<END | 14 | git show "$NEW":olamic-run | olamic-enqueue "$OLAMIC_QUEUE_DIR" "$OLAMIC_GIT_REPO" "$NEW" GIT_REF="$REF" OLAMIC_EMAIL="$OLAMIC_EMAIL" |
| 15 | . ./olamic-run | ||
| 16 | END | ||
| 17 | else | 15 | else |
| 18 | ssh "$OLAMIC_QUEUE_HOST" olamic-enqueue "$OLAMIC_QUEUE_DIR" "$OLAMIC_GIT_REPO" "$NEW" GIT_REF="$REF" OLAMIC_EMAIL="$OLAMIC_EMAIL" <<END | 16 | git show "$NEW":olamic-run | ssh "$OLAMIC_QUEUE_HOST" olamic-enqueue "$OLAMIC_QUEUE_DIR" "$OLAMIC_GIT_REPO" "$NEW" GIT_REF="$REF" OLAMIC_EMAIL="$OLAMIC_EMAIL" |
| 19 | . ./olamic-run | ||
| 20 | END | ||
| 21 | fi | 17 | fi |
| 22 | fi | 18 | fi |
| 23 | done | 19 | done |
