Do not feed rev-list an invalid SHA1 expression.