Skip to content

Instantly share code, notes, and snippets.

@NxSoftware
Created June 15, 2016 13:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NxSoftware/b99270f66eb479851091f5dc26acaea6 to your computer and use it in GitHub Desktop.
Save NxSoftware/b99270f66eb479851091f5dc26acaea6 to your computer and use it in GitHub Desktop.
SourceTree Open in GitLab custom action
#!/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