Rakefile in rerun-0.12.0 vs Rakefile in rerun-0.13.0

- old
+ new

@@ -29,15 +29,16 @@ "pkg/#{$spec.name}-#{$spec.version}" + ext end desc 'Exit if git is dirty' task :check_git do - # state = `git status 2> /dev/null | tail -n1` - # clean = (state =~ /working (directory|tree) clean/) - # unless clean - # warn "can't do that on an unclean git dir" - # exit 1 - # end + state = `git status 2> /dev/null | tail -n1` + clean = (state =~ /working (directory|tree) clean/) + unless clean + puts state + warn "can't do that on an unclean git dir" + # exit 1 + end end desc 'Build packages' task :package => %w[.gem .tar.gz].map { |e| package(e) }