# # patch "git.cc" # from [26c5b588bc19f97a9632b4ba99d47e35080b1ce5] # to [413e41044dbf536b331235573e6f9d346da521dd] # ======================================================================== --- git.cc 26c5b588bc19f97a9632b4ba99d47e35080b1ce5 +++ git.cc 413e41044dbf536b331235573e6f9d346da521dd @@ -481,6 +481,9 @@ time_t commit_time = 0; string logmsg; + // Read until eof - we have to peek() first since eof is set only after + // a read _after_ the end of the file, so we would get one superfluous + // iteration introducing trailing empty line (from failed getline()). while (!(stream.peek(), stream.eof())) { // XXX: Allow arbitrarily long lines