It looks like heroku removes the .git directory when they compile the
slug.  From heroku console:

>> `ls .git`
=> ""

You could try a post commit hook that grabbed this information.

Cheers,
Terence

On Tue, 2010-01-26 at 02:38 -0800, Daryl wrote:
> Disclaimer: New to heroku so I'm sure someone has figged this out, but
> googling didn't help.
> 
> Normally, I deploy via capistrano to servers and simply have a task
> which takes a small part of the hash and posts it to a partial.
> 
> So, on heroku, tried installing grit gem and then creating an
> application helper to get the last commit via a Grit::Repo.new
> (Rails.root + '.git') and then render it in a partial view but reading
> the fine print on the read only file system detail on heroku I guess
> that access to git is not supported.
> 
> Has anyone got a workaround for displaying a bit of the git hash and
> date in the footer of pages ? Or have I missed something blindingly
> obvious ?
> 
> thanks,
> Daryl.
> 


-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to