Skip to content

Commit eab9dbe

Browse files
rojen11LMaxence
authored andcommitted
fix: add and commit behavior for files with symbols and spaces
1 parent b9cba01 commit eab9dbe

File tree

1 file changed

+1
-1
lines changed
  • packages/mookme/src/utils

1 file changed

+1
-1
lines changed

packages/mookme/src/utils/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class GitToolkit {
103103
logger.warning('Files were changed during hook execution !');
104104
logger.info('Following the defined behavior : Add and continue.');
105105
for (const file of changedFiles) {
106-
execSync(`git add ${this.rootDir}/${file}`);
106+
execSync(`git add "${this.rootDir}/${file}"`);
107107
}
108108
break;
109109
case ADDED_BEHAVIORS.EXIT:

0 commit comments

Comments
 (0)