Created
June 15, 2016 13:34
-
-
Save NxSoftware/b99270f66eb479851091f5dc26acaea6 to your computer and use it in GitHub Desktop.
SourceTree Open in GitLab custom action
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 | |
REPO_DIR=$1 | |
SHA=$2 | |
cd $REPO_DIR | |
GITLAB_URL=`git remote get-url origin | sed -e 's/git@//' -e 's/:/\//' -e 's/\.git//'` | |
open "https://$GITLAB_URL/commit/$SHA" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment