Skip to content

Commit d363dba

Browse files
authored
Merge pull request #168 from rspec/fix-git-clean-check
Make `git clean` check in Rakefile more robust
2 parents 3d18a94 + 8b5fee7 commit d363dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ task :version_stats, :commit_ranges do |t, args|
454454
end
455455

456456
def assert_clean_git_status(name)
457-
unless `git status` =~ /nothing to commit,? \(?working directory clean\)?/
457+
unless `git status --porcelain`.empty?
458458
abort "#{name} has uncommitted changes"
459459
end
460460
end

0 commit comments

Comments
 (0)