Retrieve HEAD SHA1 once.