Skip to content

Commit 8b5fee7

Browse files
committed
Make git clean check in Rakefile more robust
The latest git command prints "working tree clean" instead of "working directory clean".
1 parent 3d18a94 commit 8b5fee7

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)