If it was a small fix, I couldn't care less if I don't get credit for my contribution.
However, if its a significant amount of code, it would be considerate that the project maintainer to merge the changes first, then modify in a subsequent commit. That my two cents.