File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -58,12 +58,9 @@ function getGithubURLPrefix(root: string) {
5858 sha = head ;
5959 }
6060 if ( sha ) {
61- return (
62- gitUrlParse ( getRemoteOrigin . sync ( root ) ) . toString ( 'https' ) +
63- '/blob/' +
64- sha . trim ( ) +
65- '/'
66- ) ;
61+ const parsed = gitUrlParse ( getRemoteOrigin . sync ( root ) ) ;
62+ parsed . git_suffix = false ; // eslint-disable-line
63+ return parsed . toString ( 'https' ) + '/blob/' + sha . trim ( ) + '/' ;
6764 }
6865 } catch ( e ) {
6966 return null ;
Original file line number Diff line number Diff line change @@ -2620,11 +2620,12 @@ git-up@^2.0.0:
26202620 is-ssh "^1.3.0"
26212621 parse-url "^1.3.0"
26222622
2623- git-url-parse@^8 .0.0 :
2624- version "8 .0.0"
2625- resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-8 .0.0.tgz#249430c84e6b11ebae630136f50d7993eb03e211 "
2623+ git-url-parse@^9 .0.0 :
2624+ version "9 .0.0"
2625+ resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-9 .0.0.tgz#a82a36acc3544c77ed0984d6488b37fbcfbec24d "
26262626 dependencies :
26272627 git-up "^2.0.0"
2628+ parse-domain "^2.0.0"
26282629
26292630gitconfiglocal@^1.0.0 :
26302631 version "1.0.0"
@@ -4775,6 +4776,10 @@ parents@^1.0.0:
47754776 dependencies :
47764777 path-platform "~0.11.15"
47774778
4779+ parse-domain@^2.0.0 :
4780+ version "2.0.0"
4781+ resolved "https://registry.yarnpkg.com/parse-domain/-/parse-domain-2.0.0.tgz#e9f42f697c30f7c2051dc5c55ff4d8a80da7943c"
4782+
47784783parse-entities@^1.0.2, parse-entities@^1.1.0 :
47794784 version "1.1.1"
47804785 resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-1.1.1.tgz#8112d88471319f27abae4d64964b122fe4e1b890"
You can’t perform that action at this time.
0 commit comments