Fixed an error that was causing adding commits to endlessly recur