Allow git commit hashes to be abbreviated to 7 characters
|Reported by:||Owned by:|
Currently an abbreviated git commit hash is only recognised by trac if it's at least 8 characters. But git itself defaults to abbreviating to 7 characters (if the 7 character abbreviation is unique in the repo) - to demonstrate this:
olly@pippikin:~/git/xapian$ git log -1 --oneline 575eab1 docs/: Add a document about character encoding, as suggested by James Aylett in #550.
The fix is a single character change - I'll attach a patch in a moment.
This seems to affect 1.0.4 and trunk.