Track the security-testing git tree via identica

December 19th, 2008 | Tags:

If you’re interested in tracking commits to the security testing tree, you can now do so via identica.

Commits to the master git repo are sent via gregkh’s bti, using the following script as the $repo/hooks/post-receive hook:


#!/bin/bash

read oldrev newrev refname

short_refname=${refname##refs/heads/}

/usr/bin/git rev-list $oldrev...$newrev --no-merges --pretty=format:"%h|%ae|%s" --abbrev-commit | grep -v ^commit |
while read a; do
echo "$short_refname|$a" | cut -f-140 | ~/bin/bti
sleep 1
done

It may not scale too well, but it’s simple. Suggestions for improvement are welcome.

Unrelatedly, here’s a short video I took of a long train in Bangalore:

http://www.youtube.com/watch?v=o2ilVl7SfjI

(Higher quality version)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
    bodytext del.icio.us Facebook Google IndianPad Mixx Reddit StumbleUpon Slashdot E-mail this story to a friend! Print this article!
Comments are closed.