Skip to content

Commit a2b7335

Browse files
Update packages/@apphosting/common/src/index.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent ca94ea2 commit a2b7335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@apphosting/common/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export function updateOrCreateGitignore(dirPath: string, entries: string[]) {
156156

157157
let content = fs.readFileSync(gitignorePath, "utf-8");
158158
for (const entry of entries) {
159-
if (!content.includes(entry)) {
159+
if (!content.split('\n').includes(entry)) {
160160
console.log(`adding ${entry} to ${gitignorePath}`);
161161
content += `\n${entry}`;
162162
}

0 commit comments

Comments
 (0)