Skip to content

Commit 44aa3a4

Browse files
authored
Merge pull request #258 from gomain/fix-duplicate-code
fix: not remove `.git` from `tmpRepoPackagePath` when creating patches
2 parents a32a03d + 09c7da9 commit 44aa3a4

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
@@ -187,7 +187,7 @@ export function makePatch({
187187
// remove nested node_modules just to be safe
188188
rimraf(join(tmpRepoPackagePath, "node_modules"))
189189
// remove .git just to be safe
190-
rimraf(join(tmpRepoPackagePath, "node_modules"))
190+
rimraf(join(tmpRepoPackagePath, ".git"))
191191

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

0 commit comments

Comments
 (0)