use "git rev-parse" to get current commit
Hopefully this will be more stable than parsing "git log".
Merge pull request #432 from mossprescott/minor

use "git rev-parse" to get current commit