Linus Torvalds <torvalds@xxxxxxxx> writes: > Maybe something like this could work. > > Untested, of course. It probably isn't even syntactically correct shell. > Whatever. You get the idea. > > (That while-loop could probably be simplified to just a > > cat ""$reference/objects/info/alternates" >> "$GIT_DIR/objects/info/alternates" > > because all alternates _should_ already be absolute paths, but hey, > whatever. I was hoping that the solution would be to do the recursive alternate resolution on the runtime side (IOW, prepare_alt_odb() in sha1_file.c). Then the repository you borrow from _could_ change its own alternates after you set up your repository to borrow from it. Currently, if the repository you borrowed from suddenly starts borrowing from somewhere else and pruned itself by running "repack -a -d -l", the borrower would be in trouble, even with your patch. - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html