Topic on User talk:Kghbln

Struggling to add the entire core to Git for the MediaInclu fork

4
Leucosticte (talkcontribs)

Hey Karsten, I've been trying to add the latest development version of the entire MediaWiki core to Git for the MediaInclu fork. However, it doesn't want to add the entire thing. I clone MediaWiki, then clone MediaInclu, then recursively copy the MediaWiki core folder into MediaInclu, then do git add ., or git add --all, or git add *, and then git commit --all, and it only commits the empty core folder. I tried changing directory to core, and got:

nathan@nathan-Inspiron-518:~/MediaInclu/core$ git add .
git: pathspec.c:317: prefix_pathspec: Assertion `item->nowildcard_len <= item->len && item->prefix <= item->len' failed.
Aborted (core dumped)

Google wasn't a very good friend to me when I asked him about that error message; he pretty much blew me off without giving me a very helpful answer. Then again, sometimes it's best for a friend to honestly say "I don't know" if that's the truth. What do you think is going on? Thanks.

Kghbln (talkcontribs)

Heiya Nathan, well I am not really an expert on Git frankly written a novice. By what you are writing I think that Git is not able to identify the changes you made just by copying new files over old ones. Perhaps it is better to run an patch from MediaInclu over the cloned MediaWiki rather than recursively copying over the whole lot. However, this is just a guess. Apart from that I am stuck at a "I do not know" either. :( Cheers

Leucosticte (talkcontribs)

Actually, I hadn't even tried to commit any changes to the codebase; I was still stuck on the initial step of trying to commit the original codebase (see Hack_MediaWiki_core#Methods). But I got it now; I needed to get rid of .git and the other hidden files (.gitignore, etc.)

Kghbln (talkcontribs)

Oops, I obviously misunderstood your question. Great that it worked out after all. These nasty little details, I tell you.