# contrib/mw-to-git/Git/Mediawiki.pm

7 messages from 2013-06-27 to 2013-06-27. Participants: Torsten Bögershausen, Benoît Person, Matthieu Moy, Junio C Hamano.
Thread: https://gitlist.dev/t/34288

## Torsten Bögershausen, 2013-06-27 16:00

Subject: contrib/mw-to-git/Git/Mediawiki.pm
Message-ID: <51CC6189.6030701@web.de>
URL: https://gitlist.dev/e/51CC6189.6030701%40web.de

```

I just discovered a major problem for
Mac OS and Windows people:

In contrib/mw-to-git/ there is a file called "git".
And there is a directory called "Git".

This does not work very well on case insensitive file systems.
When the file "git" is created, we can not create a directory
called "Git", as "Git" is mapped to "git".
And vice versa.

Can we try to rename one of them ?


The other interesting thing is that git 1.8.3 didn't like the
situation:
After checking out the pu branch, 
git status says:
deleted:    contrib/mw-to-git/Git/Mediawiki.pm

So I could not change to another branch/commit...
git stash didn't resolve the situation either.

The following saved my repo:
git mv contrib/mw-to-git/git contrib/mw-to-git/git.exe
git checkout contrib/mw-to-git/Git/Mediawiki.pm
git checkout -b xxx_git_Git_conflict
git commit -a -m xxx_git_Git_conflict

/Torsten

```

## Benoît Person, 2013-06-27 16:25

Subject: Re: contrib/mw-to-git/Git/Mediawiki.pm
Message-ID: <CAETqRCgctnVqrYaAYn7uZtv0rvQNawUAi513iTeWPufkZPRgAw@mail.gmail.com>
URL: https://gitlist.dev/e/CAETqRCgctnVqrYaAYn7uZtv0rvQNawUAi513iTeWPufkZPRgAw%40mail.gmail.com
In-Reply-To: <51CC6189.6030701@web.de>

```
Oops, so sorry :/

It's defintely doable since the lowercase 'git' is only a bin-wrapper
for git to ease development in contrib/mw-to-git/ .

Junio, Matthieu : should I resend a new version of my serie which
renames the 'git' (lowercase) file into something like 'git-dev' ?
(some comments directly mentionning the 'git' (lowercase) file needs
to be updated as well in the Makefile)

Benoit

```

## Matthieu Moy, 2013-06-27 16:39

Subject: Re: contrib/mw-to-git/Git/Mediawiki.pm
Message-ID: <vpq4ncjcxt4.fsf@anie.imag.fr>
URL: https://gitlist.dev/e/vpq4ncjcxt4.fsf%40anie.imag.fr
In-Reply-To: <CAETqRCgctnVqrYaAYn7uZtv0rvQNawUAi513iTeWPufkZPRgAw@mail.gmail.com>

```
Benoît Person <benoit.person@ensimag.fr> writes:

> Junio, Matthieu : should I resend a new version of my serie which
> renames the 'git' (lowercase) file into something like 'git-dev' ?

I'd call it bin-wrapper/git, so that people can put bin-wrapper/ in
their $PATH if needed, and by analogy with ../../bin-wrapper. If you go
this way, don't forget to update the $0 relative paths.

git-dev is OK with me too.

> (some comments directly mentionning the 'git' (lowercase) file needs
> to be updated as well in the Makefile)

Yes.

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

```

## Junio C Hamano, 2013-06-27 17:28

Subject: Re: contrib/mw-to-git/Git/Mediawiki.pm
Message-ID: <7v4ncjtqdi.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v4ncjtqdi.fsf%40alter.siamese.dyndns.org
In-Reply-To: <CAETqRCgctnVqrYaAYn7uZtv0rvQNawUAi513iTeWPufkZPRgAw@mail.gmail.com>

```
Benoît Person <benoit.person@ensimag.fr> writes:

> Oops, so sorry :/
>
> It's defintely doable since the lowercase 'git' is only a bin-wrapper
> for git to ease development in contrib/mw-to-git/ .

Hmph.  Does it even need to be in-tree then?  Is it insufficient to
run ../../git from that directory instead?

> Junio, Matthieu : should I resend a new version of my serie which
> renames the 'git' (lowercase) file into something like 'git-dev' ?
> (some comments directly mentionning the 'git' (lowercase) file needs
> to be updated as well in the Makefile)
>
> Benoit

```

## Junio C Hamano, 2013-06-27 17:29

Subject: Re: contrib/mw-to-git/Git/Mediawiki.pm
Message-ID: <7vzjubsbqj.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vzjubsbqj.fsf%40alter.siamese.dyndns.org
In-Reply-To: <vpq4ncjcxt4.fsf@anie.imag.fr>

```
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:

> Benoît Person <benoit.person@ensimag.fr> writes:
>
>> Junio, Matthieu : should I resend a new version of my serie which
>> renames the 'git' (lowercase) file into something like 'git-dev' ?
>
> I'd call it bin-wrapper/git, so that people can put bin-wrapper/ in
> their $PATH if needed, and by analogy with ../../bin-wrapper. If you go
> this way, don't forget to update the $0 relative paths.
>
> git-dev is OK with me too.
>
>> (some comments directly mentionning the 'git' (lowercase) file needs
>> to be updated as well in the Makefile)
>
> Yes.

I just noticed that the script is not strictly a text file, ending
with an incomplete line, by the way.

```

## Benoît Person, 2013-06-27 17:54

Subject: Re: contrib/mw-to-git/Git/Mediawiki.pm
Message-ID: <CAETqRCif7K3MZiG4oMfnM-jps+KajDMYML4C5Hhy8eE7bj38xA@mail.gmail.com>
URL: https://gitlist.dev/e/CAETqRCif7K3MZiG4oMfnM-jps%2BKajDMYML4C5Hhy8eE7bj38xA%40mail.gmail.com
In-Reply-To: <7vzjubsbqj.fsf@alter.siamese.dyndns.org>

```
> Hmph.  Does it even need to be in-tree then?  Is it insufficient to
> run ../../git from that directory instead?
Well, the fact is we use Perl packages now (Git.pm and
Git::Mediawiki.pm in contrib/mw-to-git/Git/). The way we build perl
scripts in the toplevel's Makefile makes those packages accessible
only in $GITPERLLIB if it's defined and defaults to $INSTLIBDIR to
seek for installed version of those packages.

We use a bin-wrapper to define that $GITPERLLIB variable so that the
installed version gets bypassed by the one presents in the directory
defined in $GITPERLLIB.

> I just noticed that the script is not strictly a text file, ending
> with an incomplete line, by the way.
an incomplete line ?

```

## Junio C Hamano, 2013-06-27 18:07

Subject: Re: contrib/mw-to-git/Git/Mediawiki.pm
Message-ID: <7vip0zs9zn.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vip0zs9zn.fsf%40alter.siamese.dyndns.org
In-Reply-To: <CAETqRCif7K3MZiG4oMfnM-jps+KajDMYML4C5Hhy8eE7bj38xA@mail.gmail.com>

```
Benoît Person <benoit.person@ensimag.fr> writes:

>> I just noticed that the script is not strictly a text file, ending
>> with an incomplete line, by the way.
> an incomplete line ?

http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html#tag_03_194

```
