Skip to content

Commit

Permalink
fix: allow different ssh remote user than git
Browse files Browse the repository at this point in the history
close #664
  • Loading branch information
Vinzent03 committed Jan 8, 2024
1 parent 1a4cca8 commit 5b6400c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openInGitHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function getData(manager: GitManager): Promise<
// However, this runtime error does not have a fatal negative impact, so we temporary ignore.
// @ts-ignore
const [isGitHub, httpsUser, httpsRepo, sshUser, sshRepo] = remoteUrl.match(
/(?:^https:\/\/github\.com\/(.*)\/(.*)\.git$)|(?:^git@github\.com:(.*)\/(.*)\.git$)/
/(?:^https:\/\/github\.com\/(.*)\/(.*)\.git$)|(?:^[a-zA-Z]+@github\.com:(.*)\/(.*)\.git$)/
);
return {
result: "success",
Expand Down

0 comments on commit 5b6400c

Please sign in to comment.