[Kde-scm-interest] Post-commit hooks script
Jean-Nicolas Artaud
jean.nicolas.artaud at kogmbh.com
Fri Dec 4 19:49:52 CET 2009
Hello guys !
News : my script should not be a post-update hook, but an update hook...
that's why I had not the good args in entry (thanks to Ian). Now every thing
seems to be OK with this BUG:, CCMAIL:, FEATURE:, CCBUG: script written in
Ruby.
I would only need a last test because my sendmail doesn't work (network
trouble ? , firewall ? , i don't know).
Thank you for advance, don't hesitate to ask me on irc what you need.
(nick morice-net)
Regards
Jean-Nicolas Artaud
Le vendredi 04 décembre 2009 04:04:18 PM, Johannes Sixt a écrit :
> Jean-Nicolas Artaud schrieb:
> > Le jeudi 03 décembre 2009 01:02:59 PM, vous avez écrit :
> >> #!/bin/sh
> >>
> >> treat_ref()
> >> {
> >> old=$1@{1} # this assumes that reflogs are available!
> >> new=$1
> >
> > We I test it locally, my old and new are nil, is it normal or not ?
> > I get them ARGV[1] and ARGV[2]... the refname ARGV[0] isn't nil.
>
> I do not quite understand. Your ARGV vector should be full of refs
> ("refs/heads/something"). You do not get SHA1s.
>
> The snippet that is quoted above is a helper function that deals with only
> one of these refs.
>
> (BTW, we are talking about a post-update hook, right?)
>
> Please send follow-ups to j6t at kdbg.org (Cc'd).
>
> -- Hannes
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: update
Type: application/x-ruby
Size: 4177 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-scm-interest/attachments/20091204/2a9e67f9/attachment.bin
More information about the Kde-scm-interest
mailing list