git rev-parse, fix promotion source