[git] Fix NPE is old log doesn't return data, and new one is not enabled