We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0529fde + 30595b7 commit 0799fc6Copy full SHA for 0799fc6
lib/puppetlabs_spec_helper/rake_tasks.rb
@@ -323,7 +323,9 @@
323
324
desc 'Fails if directories contain the files specified in .gitignore'
325
task :git_ignore do
326
- matched = `git ls-files --ignored --exclude-standard`
+ matched = `git ls-files --ignored --exclude-standard --cached`
327
+ raise 'git ls-files failed' unless $CHILD_STATUS.success?
328
+
329
unless matched == ''
330
puts matched
331
raise 'File specified in .gitignore has been committed'
0 commit comments