diff --git a/lib/gitWorkflow.js b/lib/gitWorkflow.js index 0674831b9..182d871c5 100644 --- a/lib/gitWorkflow.js +++ b/lib/gitWorkflow.js @@ -27,7 +27,7 @@ const cleanUntrackedFiles = async execGit => { 'This is probably due to a bug in git =< 2.13.0 where `git stash --keep-index` resurrects deleted files.' ) debug('Deleting the files using `git clean`...') - await execGit(['clean', '--force', untrackedFiles.split('\n').join(' ')]) + await execGit(['clean', '--force', ...untrackedFiles.split('\n')]) } } @@ -94,7 +94,7 @@ class GitWorkflow { // These files should be listed and deleted before proceeding. await cleanUntrackedFiles(this.execGit) - // Get a diff of unstaged changes by saved stash against what's left on disk. + // Get a diff of unstaged changes by diffing the saved stash against what's left on disk. this.unstagedDiff = await this.execGit([ 'diff', '--binary', @@ -119,7 +119,6 @@ class GitWorkflow { async applyModifications() { let modifiedFiles = await this.execGit(['ls-files', '--modified']) if (modifiedFiles) { - modifiedFiles = modifiedFiles.split('\n') debug('Detected files modified by tasks:') debug(modifiedFiles) debug('Adding files to index...')