Merge pull request #3967 from backstage/bug/isomorphic-git-fix

bug(scaffolder): Ignore the .git folder
This commit is contained in:
Ben Lambert
2021-01-08 18:32:21 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
bug(scaffolder): Ignore the .git folder when adding dot-files to the index
@@ -39,7 +39,7 @@ export async function initRepoAndPush({
dir,
});
const paths = await globby(['./**', './**/.*'], {
const paths = await globby(['./**', './**/.*', '!.git'], {
cwd: dir,
gitignore: true,
dot: true,