First off, thank you for this extension!
Unfortunately, I get back null for the repoUrl
ex. null/blob/9970...7b7e/foo.js#L25-L29
This is because I have the following setup, where I don't use git@github.com:, so that I can associate an ssh key with the remote
# .git
[remote "origin"]
url = git@github-work:johndoe/repo.git
fetch = +refs/heads/*:refs/remotes/origin/*
# .ssh
Host github-work
HostName github.com
IdentityFile ~/.ssh/github-work
- Do you know of any workarounds for my setup?
- OR could you extend support for one of
- in
getGitHubRepoURL to ignore the hostname -- ex. startsWith git@ and returns everything after :
- add configuration option:
githubLinker.repoUrl = '...'
thank you!
First off, thank you for this extension!
Unfortunately, I get back
nullfor therepoUrlex.
null/blob/9970...7b7e/foo.js#L25-L29This is because I have the following setup, where I don't use
git@github.com:, so that I can associate an ssh key with the remote# .ssh Host github-work HostName github.com IdentityFile ~/.ssh/github-workgetGitHubRepoURLto ignore the hostname -- ex. startsWithgit@and returns everything after:githubLinker.repoUrl = '...'thank you!