Skip to content

Commit 09c7da9

Browse files
committed
fix: remove .git from tmpRepoPackagePath
1 parent 50f73bd commit 09c7da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/makePatch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export function makePatch({
186186
// remove nested node_modules just to be safe
187187
rimraf(join(tmpRepoPackagePath, "node_modules"))
188188
// remove .git just to be safe
189-
rimraf(join(tmpRepoPackagePath, "node_modules"))
189+
rimraf(join(tmpRepoPackagePath, ".git"))
190190

191191
// also remove ignored files like before
192192
removeIgnoredFiles(tmpRepoPackagePath, includePaths, excludePaths)

0 commit comments

Comments
 (0)