Installation via git on Windows

Installation via git on Windows

by Payman Zafar -
Number of replies: 2

Hi all,

I am trying to install Moodle on a Windows server via git. I have installed git for Windows. When I try to clone the Moodle repository, I receive the following error:

$ git clone -b MOODLE_38_STABLE git://git.moodle.org/moodle.git
Cloning into 'moodle'...
remote: Counting objects: 1133908, done.
remote: Compressing objects: 100% (257740/257740), done.
error: filename in tree entry contains backslash: '\' 691.00 KiB/s
fatal: Not all child objects of c04fc6721b6ec167e5f3910b86ee7757bcedf420 are reachable
fatal: index-pack failed

Please help.

Average of ratings: Useful (1)
In reply to Payman Zafar

Re: Installation via git on Windows

by Ken Task -
Picture of Particularly helpful Moodlers

Qualifications for this response:  none ... I don't run Windows ... however, am a 'fan' of git. ;)

Some Googling found others with same issue on platform so it's not a Moodle only thang - but platform.

Seen in another posting for another repo ...

"Workaround

Disable core.protectNTFS:
git config --global core.protectNTFS false
"


 core.protectNTFS::
        If set to true, do not allow checkout of paths that would
        cause problems with the NTFS filesystem, e.g. conflict with
        8.3 "short" names.
        Defaults to `true` on Windows, and `false` elsewhere.

Check it out on your system:
git help config

git config --get core.protectNTFS

Am guessing on your Windows system above would show setting. On this Mac am on nothing displays.

Might want to read:
https://moodle.org/mod/forum/discuss.php?d=208904

'SoS', Ken

Average of ratings: Useful (2)
In reply to Ken Task

Re: Installation via git on Windows

by Payman Zafar -

Thank you very much Ken.

It worked.

Using "git config --get core.protectNTFS" command didn't show anything at first, but after running "git config --global core.protectNTFS false" this option was disabled. The clone process went smoothly.

Average of ratings: Useful (1)