Skip to content

Commit

Permalink
Fix cloning list repo
Browse files Browse the repository at this point in the history
Closes #179
Fixes #178
  • Loading branch information
sindresorhus committed Nov 27, 2023
1 parent 5413b35 commit 8e8b0bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import isUrl from 'is-url-superb';
import isGithubUrl from 'is-github-url';
import ora from 'ora';
import {remark} from 'remark';
import gitClone from 'git-clone';
import {globbySync} from 'globby';
import rmfr from 'rmfr';
import {temporaryDirectory} from 'tempy';
import {readSync as readVFileSync} from 'to-vfile';
import vfileReporterPretty from 'vfile-reporter-pretty';
import {execa} from 'execa';
import config from './config.js';
import findReadmeFile from './lib/find-readme-file.js';
import codeOfConductRule from './rules/code-of-conduct.js';
Expand Down Expand Up @@ -67,7 +67,7 @@ lint._report = async (options, spinner) => {
}

temporary = temporaryDirectory();
await gitClone(options.filename, temporary);
await execa('git', ['clone', '--', options.filename, temporary]);

const readme = findReadmeFile(temporary);
if (!readme) {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"case": "^1.6.3",
"emoji-regex": "^10.2.1",
"execa": "^8.0.1",
"git-clone": "^0.2.0",
"github-slugger": "^2.0.0",
"github-url-to-object": "^4.0.6",
"globby": "^13.2.2",
Expand Down

0 comments on commit 8e8b0bb

Please sign in to comment.