simplify the command to obtain git commit hash

it's better to use abbreviated hash than hard coded fixed length hash