Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Force checkout of origin/ on Heroku
  • Loading branch information
gjtorikian committed Jun 10, 2014
1 parent 91c6b22 commit 4d50a9f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rakefile
Expand Up @@ -41,7 +41,11 @@ task :publish, [:no_commit_msg] => [:clean, :remove_output_dir] do |t, args|
sh "nanoc compile"

# save precious files
`git checkout gh-pages`
if ENV['IS_HEROKU']
`git checkout origin/gh-pages`
else
`git checkout gh-pages`
end
tmpdir = Dir.mktmpdir
FileUtils.cp_r("enterprise", tmpdir)
FileUtils.cp("robots.txt", tmpdir)
Expand Down

0 comments on commit 4d50a9f

Please sign in to comment.