Detect the source commit SHA1.