Skip to content

Commit fe4756c

Browse files
authored
Merge pull request #593 from sherlockdoyle/fix-592
Handle filenames starting with a dash
2 parents b3478f0 + 7e44de2 commit fe4756c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Git.prototype.rm = function (files) {
143143
if (!Array.isArray(files)) {
144144
files = [files];
145145
}
146-
return this.exec('rm', '--ignore-unmatch', '-r', '-f', ...files);
146+
return this.exec('rm', '--ignore-unmatch', '-r', '-f', '--', ...files);
147147
};
148148

149149
/**

0 commit comments

Comments
 (0)