Bibzball / Git-Mediawiki

Gate between git and mediawiki
https://github.com/Bibzball/Git-Mediawiki/wiki
31 stars 4 forks source link

Initial fast-import fails #8

Open becatlibra-zz opened 11 years ago

becatlibra-zz commented 11 years ago

Our wiki is huge so this process takes a LONG time to complete or rather to get to the point of failure. I've tried to run it twice and both times it's failed out with the same error. Can you please help me to determine what the issues is? I really want to be able to use this awesome tool but I've hit this snag:

55549/74278: Revision #72810 of Scheduling_Calender_Events 55550/74278: Revision #72811 of "Scheduling_Calender_Events" fatal: Garbage after path in: M 644 inline "Scheduling_Calender_Events".mw fast-import: dumping crash report to .git/fast_import_crash_9681 fatal: Error while running fast-import

If you need the fast_import_crash report, please let me know. I would prefer to send that privately as it contains usernames and the actual domain name (although I can change those I suppose).

Thanks again for your help

Benjamin

moy commented 11 years ago

Benjamin Cathey notifications@github.com writes:

Our wiki is huge so this process takes a LONG time to complete or rather to get to the point of failure. I've tried to run it twice and both times it's failed out with the same error. Can you please help me to determine what the issues is? I really want to be able to use this awesome tool but I've hit this snag:

55549/74278: Revision #72810 of Scheduling_Calender_Events 55550/74278: Revision #72811 of "Scheduling_Calender_Events" fatal: Garbage after path in: M 644 inline "Scheduling_Calender_Events".mw

You have a page whose name starts with ", and git-remote-mediawiki fails to escape it.

Good news: this is fixed here

https://github.com/git/git/commit/462d97daf69951f968f16b6271de9db34f7dd13c

Matthieu Moy http://www-verimag.imag.fr/~moy/

becatlibra-zz commented 11 years ago

I had installed this via Arch Linux's AUR which says it is version 1.7.9-1. I am guessing the commit that you linked me to has not been merged back in to the main master branch?

In order to apply this, at this time, I'll need to hand edit the two files that are mentioned, correct? I know that's a pretty basic question but I wanted to be sure that I do not need to run anything else to process the changes. I found two files with the name 'git-remote-mediawiki' ... I'm assuming the one that needs modification is the one in /usr/share/git/mw-to-git and not the one in /usr/lib/git-core ?

Thanks again for your help

B

moy commented 11 years ago

Benjamin Cathey notifications@github.com writes:

I had installed this via Arch Linux's AUR which says it is version 1.7.9-1. I am guessing the commit that you linked me to has not been merged back in to the main master branch?

It is in master, but not in any released version yet.

In order to apply this, at this time, I'll need to hand edit the two files that are mentioned, correct?

Just git-remote-mediawiki should do it. The other is a test. You may just grab the file, put it in your $PATH and make it executable, it should work.

I know that's a pretty basic question but I wanted to be sure that I do not need to run anything else to process the changes. I found two files with the name 'git-remote-mediawiki' ... I'm assuming the one that needs modification is the one in /usr/share/git/mw-to-git and not the one in /usr/lib/git-core ?

No idea how Arch installs this, but there's only one source file named git-remote-mediawiki. Isn't one a link to the other?

Matthieu Moy http://www-verimag.imag.fr/~moy/

becatlibra-zz commented 11 years ago

Actually, the versions are quite different. Apparently, at some point in the past, I did a manual installation myself. I've nuked everything and will start fresh and make the changes that you mentioned.

Thanks again for all your help

B