*Correctly* trim whitespace in HEAD SHA