Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit 30cdcb6

Browse files
committed
Add commit-tree command compatible with Heroku
1 parent 8ddfcfb commit 30cdcb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Rakefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ task :publish, [:no_commit_msg] => [:clean, :remove_output_dir] do |t, args|
4949
`git add -A`
5050
tsha = `git write-tree`.strip
5151
puts "Created tree #{tsha}"
52-
if old_sha.size == 40
52+
# Heroku runs [email protected], we don't have the luxury of -m
53+
if ENV['IS_HEROKU']
54+
`echo #{mesg} > changelog`
55+
csha = `git commit-tree #{tsha} -p #{old_sha} < changelog`.strip
56+
elsif old_sha.size == 40
5357
csha = `git commit-tree #{tsha} -p #{old_sha} -m '#{mesg}'`.strip
5458
else
5559
csha = `git commit-tree #{tsha} -m '#{mesg}'`.strip

0 commit comments

Comments
 (0)