-
-
Save lowsky/0b4e612e5d2fa7c6f3a5 to your computer and use it in GitHub Desktop.
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/bash -x | |
REPO="${1}" | |
SHA1="${2}" | |
repofragment=$(cd "$REPO"; git remote -v | grep origin | grep push | sed -e 's/.*github\.com.\(.*\)\.git.*/\1/') | |
url="https://github.com/${repofragment}/commit/${SHA1}" | |
open "$url" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment