On Wed, Mar 12, 2008 at 09:52:18PM -0700, Junio C Hamano wrote:Ah, sorry. I tested this line by hand, found it didn't work, and stupidly jumped to the assumption that it was the literal tab (that being the only interesting thing in the input). But the actual problem is that MERGE_RR lacks a trailing newline. I don't see any code to add newlines, even though it seems possible that we will write out several paths. So I think we need a newline here: diff --git a/builtin-rerere.c b/builtin-rerere.c index c607aad..e4a1dc1 100644 --- a/builtin-rerere.c +++ b/builtin-rerere.c @@ -58,7 +58,8 @@ static int write_rr(struct path_list *rr, int out_fd) int length = strlen(path) + 1; if (write_in_full(out_fd, rr->items[i].util, 40) != 40 || write_in_full(out_fd, "\t", 1) != 1 || - write_in_full(out_fd, path, length) != length) + write_in_full(out_fd, path, length) != length || + write_in_full(out_fd, "\n", 1) != 1) die("unable to write rerere record"); } if (commit_lock_file(&write_lock) != 0) And unless I am missing something, rerere on multiple paths is very broken (but that seems weird, since this code is so old). -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg KH | Og dreams of kernels |
| Jens Axboe | [PATCH 31/33] Fusion: sg chaining support |
| Arnd Bergmann | Re: finding your own dead "CONFIG_" variables |
| Mark Brown | [PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset |
| Tony Breeds | [LGUEST] Look in object dir for .config |
git: | |
| Brian Downing | Re: Git in a Nutshell guide |
| John Benes | Re: master has some toys |
| Matthias Lederhofer | [PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree |
| Alexander Sulfrian | [RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set |
| Junio C Hamano | Re: Rss produced by git is not valid xml? |
| Linux Kernel Mailing List |
