diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-01-19 14:35:32 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-01-19 14:35:32 +0000 |
commit | 63c5ed67bf023852b121993d0fc7ce62e0be1023 (patch) | |
tree | 054ef23b7ebd619c50c1ef4c00e5d1ad37d88a06 /app/controllers/admin_general_controller.rb | |
parent | bd565325187947ab3bba33f4ce7219d0933b3c0d (diff) |
Show some info about the Alaveteli version currently running. Fixes #319.
Diffstat (limited to 'app/controllers/admin_general_controller.rb')
-rw-r--r-- | app/controllers/admin_general_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/admin_general_controller.rb b/app/controllers/admin_general_controller.rb index ae51e0923..0b7e9bec0 100644 --- a/app/controllers/admin_general_controller.rb +++ b/app/controllers/admin_general_controller.rb @@ -78,6 +78,10 @@ class AdminGeneralController < AdminController end def debug + @current_commit = `git log -1 --format="%H"` + @current_branch = `git branch | grep "\*" | awk '{print $2}'` + repo = `git remote show origin -n | grep Fetch | awk '{print $3}' | sed -re 's/.*:(.*).git/\\1/'` + @github_origin = "https://github.com/#{repo.strip}/tree/" @request_env = request.env end end |