Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rakefile get_commit_time: Fix for 1.9 compat.

  • Loading branch information...
commit 9ffcefc71ededfd99160cb0798bb7f2765360b93 1 parent a1f9c4b
@runpaint authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  Rakefile
View
3  Rakefile
@@ -66,7 +66,7 @@ end
def commit_time(file)
begin
- Time.at(`git log -r --name-only --no-color --pretty=raw -z #{file}`.
+ Time.at(`git log -r --name-only --no-color --pretty=raw -z #{file}`.split(/\n/).
to_a.grep(/^committer/).last.match(/ (\d+) /)[1].to_i)
rescue
$stderr.puts "Couldn't get commit time for #{file}"
@@ -190,7 +190,6 @@ end
desc "Upload the website"
task :upload => [:www, :sitemap] do
- rm OUTPUT_HTML
sh "rsync -vaz #{WEB_OUT}/ vim.runpaint.org:/home/public/"
Rake::Task['sitemap_notify'].invoke
sh 'git push'
Please sign in to comment.
Something went wrong with that request. Please try again.