Repository navigation
Conversation
|
It does indeed not work, but I don't see why the indexer should know about it. It's a missing feature from the emulation. |
|
Indeed - the point of the emulation layer is that we don't need terrible It would be nice if you would make |
|
I can do that, but give me a day or two. |
|
I don't want to be that guy that shows up and litters macros. |
|
Actually, I complied and tested but forgot I was on the wrong OS, I still need to test this. |
| return -1; | ||
| if (prot & GIT_PROT_WRITE) { | ||
| if ((p_lseek(fd, offset, SEEK_SET) < 0) || p_write(fd, out->data, len)) { | ||
| giterr_set(GITERR_OS, "index write failed"); |
There was a problem hiding this comment.
Why does this mention an index? The problem is trying to user mmap emulation for writable pages, which is what we don't support. Whether it's the indexer or anything else is irrelevant and having this error message doesn't explain why it failed.
|
I'm too lazy to worry about this anymore. |
Index writing does not work with the mmap emulation in posix.c.
See these two lines:
https://github.com/libgit2/libgit2/blob/master/src/indexer.c#L468
https://github.com/libgit2/libgit2/blob/master/src/posix.c#L235