post-receive hook

Sandro Knauß bugs at sandroknauss.de
Mon Jan 9 13:15:00 UTC 2017


Hey,

> > yes exactly I'm talking about pkg-kde repos on alioth - sorry I was not
> > that
> > precise in my first mail: here is the diff (git.debian.org):
> We can try it for sure, specially if we have those scripts on a git repo,
> which I think you did now (although I don't know if it's autosyncing)

The repo is now created pkg-kde/alioth-tooling.git . Currently I only add 
links at the base dir (/git/pkg-kde/ to the checkout of the repo /home/groups/
pkg-kde/alioth-tooling/), so everything should work without any change. In 
future we wanna replace every link to base dir to a link to the checkout.

* no auto checkout / I did not found a way to trigger an pull/checkout of the 
master branch. The detection if the master branch is push works sucessfully, 
but not the checkout  - Any hints? /git/pkg-kde/alioth-tooling.git/hooks/post-
receive 

#bin/sh 
while read oldrev newrev ref
do
    if [ "$ref" = "refs/heads/master" ]; then
        echo "Master ref received. Deploying master branch..."
        git --work-tree=/home/groups/pkg-kde/alioth-tooling --git-dir=/git/
pkg-kde/alioth-tooling.git  checkout -f
    else
        echo "Ref $ref successfully received.  Doing nothing: only the master 
branch may be deployed on this server."
    fi
done

unfortunately the pending-tag script is not triggered correctly, because it 
needs to called with oldrev newrev ref instead of line any ideas?

Best Regards,

sandro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-kde-talk/attachments/20170109/cbceed8f/attachment.sig>


More information about the pkg-kde-talk mailing list