Skip to content

Commit

Permalink
Got rid of simple-git warning (#3405)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Mar 21, 2022
1 parent feee38f commit 76050e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions benchmark/benchmark.js
Expand Up @@ -6,7 +6,7 @@ const crypto = require('crypto');
const { argv } = require('yargs');
const fetch = require('node-fetch').default;
const Benchmark = require('benchmark');
const simpleGit = require('simple-git/promise');
const simpleGit = require('simple-git');
const { parseLanguageNames } = require('../tests/helper/test-case');


Expand Down Expand Up @@ -401,7 +401,7 @@ async function getCandidates(config) {
const remoteBaseDir = path.join(__dirname, 'remotes');
await fs.promises.mkdir(remoteBaseDir, { recursive: true });

const baseGit = simpleGit(remoteBaseDir);
const baseGit = simpleGit.gitP(remoteBaseDir);

for (const remote of config.remotes) {
const user = /[^/]+(?=\/prism.git)/.exec(remote.repo);
Expand All @@ -413,9 +413,9 @@ async function getCandidates(config) {
if (!fs.existsSync(remoteDir)) {
console.log(`Cloning ${remote.repo}`);
await baseGit.clone(remote.repo, remoteName);
remoteGit = simpleGit(remoteDir);
remoteGit = simpleGit.gitP(remoteDir);
} else {
remoteGit = simpleGit(remoteDir);
remoteGit = simpleGit.gitP(remoteDir);
await remoteGit.fetch('origin', branch); // get latest version of branch
}
await remoteGit.checkout(branch); // switch to branch
Expand Down
2 changes: 1 addition & 1 deletion dangerfile.js
@@ -1,7 +1,7 @@
const { markdown } = require('danger');
const fs = require('fs').promises;
const gzipSize = require('gzip-size');
const git = require('simple-git/promise')(__dirname).silent(true);
const git = require('simple-git').gitP(__dirname);

/**
* Returns the contents of a text file in the base of the PR.
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js/changelog.js
Expand Up @@ -4,7 +4,7 @@ const { src, dest } = require('gulp');

const replace = require('gulp-replace');
const pump = require('pump');
const git = require('simple-git/promise')(__dirname);
const git = require('simple-git').gitP(__dirname);

const { changelog } = require('./paths');

Expand Down

0 comments on commit 76050e6

Please sign in to comment.