Skip to content

Commit 4d50a9f

Browse files
committed
Force checkout of origin/ on Heroku
1 parent 91c6b22 commit 4d50a9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Rakefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ task :publish, [:no_commit_msg] => [:clean, :remove_output_dir] do |t, args|
4141
sh "nanoc compile"
4242

4343
# save precious files
44-
`git checkout gh-pages`
44+
if ENV['IS_HEROKU']
45+
`git checkout origin/gh-pages`
46+
else
47+
`git checkout gh-pages`
48+
end
4549
tmpdir = Dir.mktmpdir
4650
FileUtils.cp_r("enterprise", tmpdir)
4751
FileUtils.cp("robots.txt", tmpdir)

0 commit comments

Comments
 (0)