Skip to content

Commit 1f40ef8

Browse files
author
Gitlab-CI
committed
fix(ribbon): fix ribbon getting wrong url
1 parent 6d56c7b commit 1f40ef8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cli/cmds/ribbon.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-disable no-undef, no-param-reassign, global-require, no-unused-vars, no-console, no-underscore-dangle, prefer-destructuring */
2-
const execa = require('execa');
32
const path = require('path');
43
const fs = require('fs');
54

@@ -25,10 +24,8 @@ exports.handler = async (argv) => {
2524

2625
const repoName = url.indexOf('github.com') !== -1 ? 'GitHub' : 'GitLab';
2726

28-
const { stdout: repoUrl } = await execa.shell(`node ${argv.$0} meta http-url -p ${argv.path}`);
29-
3027
const ribbon = {
31-
url: repoUrl,
28+
url: url.replace(/\.git$/, ''),
3229
text: `Fork us on ${repoName}`,
3330
};
3431

0 commit comments

Comments
 (0)