Split git clone and git log into 2 steps to apply checks