Skip to content

Commit

Permalink
fix: remove check for .git in git remote url (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
muenzpraeger authored Jan 25, 2021
1 parent 63e7e22 commit e2125a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@best/config/src/utils/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function getBranch(git: SimpleGit.SimpleGit): Promise<string> {

async function getRepository(git: SimpleGit.SimpleGit): Promise<{ owner: string, repo: string }> {
const url = await git.listRemote(['--get-url']);
const matches = url.trim().match(/^.+[:/](.+)\/(.+).git$/);
const matches = url.trim().match(/^.+[:/](.+)\/(.+)/);
if (!matches) {
throw new Error('Unable to parse git repo');
}
Expand Down

0 comments on commit e2125a8

Please sign in to comment.