Fix error with bad commit hashes not been cleaned before used in git show command. Replace local var with call directly to function.