I want to OS X to intelligently open git URLs by first trying to open their repo page on GitHub, and then falling back to something like GitBox.app.
I found this question extremely helpful, and I created an Automator app to wrap a bash script (which does all of the intelligent stuff), and used RCDefaultApp to set OS X to use my automator app to open git:// URLs.
This didn't work, so I tried some debugging. I set my bash script to output its arguments to /tmp/output.txt, and it turns out that the script isn't getting any command line arguments. If I set OS X to use this same automator app as the default app for *.txt files, the bash script correctly gets the path of the file as the first argument, but it doesn't work with URLs. Any idea how to get this to work?
Also, I'm running 10.7.
Edit: Here's a snapshot of the Automator app:

And here's the text of that simple bash script (not what I would actually use to open the git:// URLs, but it demonstrates the lack of arguments:
rm -f /tmp/output.txt
echo $0 >> /tmp/output.txt
echo $* >> /tmp/output.txt
And the only output I get in /tmp/output.txt is:
-

