Skip to content

Commit

Permalink
fix: drop deprecated silent() from simple-git (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalters512 authored Mar 8, 2021
1 parent 1d9f43c commit 8ce510e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
26 changes: 22 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"netrc": "^0.1.4",
"ora": "^5.3.0",
"preferences": "^2.0.2",
"simple-git": "^2.34.2"
"simple-git": "^2.36.1"
},
"devDependencies": {
"@octokit/plugin-rest-endpoint-methods": "^4.10.2",
Expand Down
5 changes: 1 addition & 4 deletions src/adapters/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ abstract class GitAdapter implements IRepoAdapter {
await this.git(repo).fetch('origin');
} else {
const git = simpleGit();
git.silent(true);
await git.clone(repoPath, localPath, ['--depth', '1']);
}

Expand Down Expand Up @@ -92,9 +91,7 @@ abstract class GitAdapter implements IRepoAdapter {
protected abstract getRepositoryUrl(repo: IRepo): string;

protected git(repo: IRepo): SimpleGit {
const git = simpleGit(this.getRepoDir(repo));
git.silent(true);
return git;
return simpleGit(this.getRepoDir(repo));
}

protected isShepherdCommitMessage(message: string): boolean {
Expand Down

0 comments on commit 8ce510e

Please sign in to comment.