jira_link_for_commit - add support for SSH remotes
diff --git a/scripts/jira_link_for_commit.sh b/scripts/jira_link_for_commit.sh
index 862b633..30dae40 100755
--- a/scripts/jira_link_for_commit.sh
+++ b/scripts/jira_link_for_commit.sh
@@ -8,6 +8,8 @@
 hash=$(git rev-parse --short ${commit})
 base=$(git remote get-url origin)
 url=${base%.git}/commit/${hash}
-repo_name=$(echo $base | awk -F '/' '{ gsub(".git", "", $5); print $5}')
+url=${url/git@/https://}
+url=${url/.com:/.com/}
+repo_name=$(echo $base | awk -F '/' '{ gsub(".git", "", $NF); print $NF}')
 
 echo "[${repo_name} commit ${hash}|${url}]"