Skip to content

Instantly share code, notes, and snippets.

@bka
Created March 16, 2011 10:20
Show Gist options
  • Save bka/872285 to your computer and use it in GitHub Desktop.
Save bka/872285 to your computer and use it in GitHub Desktop.
get current svn revision
# From http://ariejan.net/2006/12/13/show-the-current-svn-revision-in-your-rails-app/
def get_revision
return `svn info #{RAILS_ROOT} | grep ^Revision`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment