Created
July 31, 2013 20:30
-
-
Save mike3k/6125852 to your computer and use it in GitHub Desktop.
Use this as a custom action in SourceTree to view the selected commit on Github. In the custom action editor, specify the parameters $REPO $SHA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd $1 | |
URL=`git remote -v |grep "fetch)" |awk '{print $2;}'|sed -e's#[email protected]:#http://github.com/#'|sed -e's|\.git||'` | |
open ${URL}/commit/$2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm I get error: Couldn't posix_spawn: error 8