Ignore ``git log`` if it complains that the ref is ambiguous.

Otherwise, log the warning.