[#43] Use correct if statement for skipping commits