Skip to content

Commit df6f109

Browse files
committed
Actually check for 'ignore-git' argument
1 parent 1351cc6 commit df6f109

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function replaceInFiles(searchFor, replaceWith, filesToWorkWith){
221221

222222
/* Prompt */
223223

224-
if (checkIfCwdIsGitRepository()) {
224+
if (!argv['ignore-git'] && checkIfCwdIsGitRepository()) {
225225
logError('Current directory is already an exisiting git repository!');
226226
return false;
227227
} else {

0 commit comments

Comments
 (0)