M0UNTAIN 0F C0DE

Me and the team at work make extensive use of BitBuckets issue tracker to document and track bugs, issues and suggestions against projects and this works really well for a single repository.

The problem comes when you want to see all the issues in a group of repositories, you can see issues from ALL repositories but can't then order, sort or filter them, this makes it really hard to get an overview of all the issues in a related group of repositories.

Fortunately BitBucket has an API and I have a bunch of spare time...

Today I was writing a script that needs to run without user interaction and need to get the latest version of a single file from a private BitBucket Git repo over SSH.

BitBucket allows you to do this over HTTPS and I could use something like curl or wget with digest auth but then that would require the user name and password to be added to the script in plain text...

Not ideal, esspecially when SSH keys are already setup and far more secure than passwords, but there is a solution...