File tree 2 files changed +11
-9
lines changed
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) {
58
58
sha = head ;
59
59
}
60
60
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 ( ) + '/' ;
67
64
}
68
65
} catch ( e ) {
69
66
return null ;
Original file line number Diff line number Diff line change @@ -2620,11 +2620,12 @@ git-up@^2.0.0:
2620
2620
is-ssh "^1.3.0"
2621
2621
parse-url "^1.3.0"
2622
2622
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 "
2626
2626
dependencies :
2627
2627
git-up "^2.0.0"
2628
+ parse-domain "^2.0.0"
2628
2629
2629
2630
gitconfiglocal@^1.0.0 :
2630
2631
version "1.0.0"
@@ -4775,6 +4776,10 @@ parents@^1.0.0:
4775
4776
dependencies :
4776
4777
path-platform "~0.11.15"
4777
4778
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
+
4778
4783
parse-entities@^1.0.2, parse-entities@^1.1.0 :
4779
4784
version "1.1.1"
4780
4785
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