Skip to content

Commit

Permalink
Merge pull request #339 from SUSE/git-check-improvement
Browse files Browse the repository at this point in the history
Check for untracked files in package.rake
  • Loading branch information
fschueller committed Feb 26, 2018
2 parents 9b48c8d + 295e3a6 commit 78a78f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/package.rake
Expand Up @@ -22,11 +22,11 @@ namespace :package do

desc 'Check local checkout for uncommitted changes'
task :check_git do
modified = `git ls-files -m --exclude-standard .`
modified = `git ls-files -m -o --exclude-standard .`
if modified.empty?
puts 'No uncommitted changes detected.'
else
raise "Warning: uncommitted changes!\n\n#{modified}\n"
raise "Warning: uncommitted or untracked changes!\n\n#{modified}\n"
end
end

Expand Down

0 comments on commit 78a78f7

Please sign in to comment.