Skip to content

Commit

Permalink
Merge pull request #1025 from edmundreinhardt/fix/local_.gitignores_b…
Browse files Browse the repository at this point in the history
…reaks_deploy

**/.gitignores causes deploy to ignore all if .gitignore found in subdirectory other than project root
  • Loading branch information
worksofliam authored Jan 27, 2023
2 parents 4a0129c + 64ad9bb commit 09ea7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/local/deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export namespace Deployment {
const remotePath = existingPaths ? existingPaths[folder.uri.fsPath] : '';

// get the .gitignore file from workspace
const gitignores = await vscode.workspace.findFiles(new vscode.RelativePattern(folder, `**/.gitignore`), ``, 1);
const gitignores = await vscode.workspace.findFiles(new vscode.RelativePattern(folder, `.gitignore`), ``, 1);
const ignoreRules = ignore({ ignorecase: true }).add(`.git`);
if (gitignores.length > 0) {
// get the content from the file
Expand Down

0 comments on commit 09ea7c4

Please sign in to comment.