ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Use the git sha for the revision (Feature #221)

Added by Eric Davis at 2011-02-24 10:43 pm. Updated at 2011-10-25 10:59 pm.

Status:Closed Start date:2011-02-24
Priority:Normal Due date:
Assignee:Eric Davis % Done:


Target version:2.4.0
Remote issue URL: Affected version:


lib/redmine/version.rb is currently reading the svn XML to find which revision the site is. I threw something together to replace that for git. Can someone review it, especially with Ruby 1.9 or a non-standard git path?

Associated revisions

Revision 79073734
Added by Eric Davis at 2011-10-26 12:55 am

[#221 Use git rev-parse to get the current sha for the version string


Updated by Holger Just at 2011-02-25 07:21 am

I'd include the currently checked out branch into the info too. Maybe also the date of the HEAD commit for a quick overview.

Updated by Ian Freeman at 2011-02-25 11:50 am

Humble suggestion, utilize tagging as much as possible and display the version as git describe?

Updated by Eric Davis at 2011-02-25 09:27 pm

The point of the revision value is to let someone know the exact version they are running. I don't think adding additional data to it like the current branch, tag, or commit date will help much. It will either be a sha we know about directly from our repo or it will be a custom sha from a fork.

Updated by Ian Freeman at 2011-02-26 12:38 am

git-describe does uniquely identify the sha1, it just doesn't display the entire thing, while at the same time giving more meaningful information to humans.

Updated by Eric Davis at 2011-10-25 10:59 pm

The version number is now using git for the revision part (x.y.z.REVISION).

  • Target version set to 2.4.0
  • Status changed from Ready for review to Closed

Also available in: Atom PDF