remove unecessary throw
This commit is contained in:
parent
62cdf9142a
commit
f93438d44c
1 changed files with 0 additions and 3 deletions
|
|
@ -55,9 +55,6 @@ class GitCommitContextProvider extends BaseContextProvider {
|
|||
const topLevelDir = fileURLToPath((await args.ide.getWorkspaceDirs())[0]);
|
||||
try{
|
||||
const gitResult = await asyncExec(`git --no-pager log --pretty=format:"%H:%s" -n ${depth}`, {cwd: topLevelDir});
|
||||
if (gitResult.stderr.toLowerCase().includes('fatal')) {
|
||||
throw new Error(gitResult.stderr);
|
||||
}
|
||||
return [{ id: `last ${lastXCommitsDepth} commits`, title: `last ${lastXCommitsDepth} commits`, description: "recent commits" }]
|
||||
.concat(
|
||||
gitResult.stdout
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue