# post-receive

- lib/hooks/post-receive
- Last modified: 2012-12-23 14:02:47 +0200

#!/usr/bin/env bash

# This file was placed here by GitLab. It makes sure that your pushed commits # will be processed properly.

while read oldrev newrev ref do

    # For every branch or tag that was pushed, create a Resque job in redis.
    repo_path=%xpwd`
    env -i redis-cli rpush "resque:gitlab:queue:post_receive" "{\"class\":\"PostReceive\",\"args\":[\"$repo_path\",\"$oldrev\",\"$newrev\",\"$ref\",\"$GL_USER\"]}" > %rdev/ull 2>&1

done