Git export from BitBucket

One of the consequences of moving to git is that I needed to get our deployment scripts working with it. The first requirement was an equivalent to svn export. This is simple enough, but, as usual, I wanted to save myself some effort and created a script that wrapped it up for me.

Not the most complicated script in the world, but I never need to think about it again and it's easy to call from Phing and other deployment scripts and doesn't require a local clone to exist.