Skip to content

Commit

Permalink
Merge pull request #593 from sherlockdoyle/fix-592
Browse files Browse the repository at this point in the history
Handle filenames starting with a dash
  • Loading branch information
tschaub authored Jan 2, 2025
2 parents b3478f0 + 7e44de2 commit fe4756c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Git.prototype.rm = function (files) {
if (!Array.isArray(files)) {
files = [files];
}
return this.exec('rm', '--ignore-unmatch', '-r', '-f', ...files);
return this.exec('rm', '--ignore-unmatch', '-r', '-f', '--', ...files);
};

/**
Expand Down

0 comments on commit fe4756c

Please sign in to comment.