Gh394 git history review

#394 
use Repository.shortenRefName(...) to get branch short name