Yeah, it's best to only commit working, well-tested code. Once the code is merged, it's in there, and it's super easy to forget that you needed to go back and fix things up (even with line comments in there). If you're tempted to put in a line comment and come back to something, I would just hold off on committing that code until you've got it worked out.