Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Support ignoring chmod changes on filesystems that do not support chmod (e.g. FAT) #378

Open
@osklyar

Description

@osklyar

There is a common Windows issue with Unix executables in it: cloning those in Windows leads to differences between the filesystem and the git index because Windows reports 10644 for Unix 10755 files. The standard git client permits ignoring such differences transparently via the following config option: git config core.fileMode false. A similar option is required for go-git otherwise it is very difficult to work with repositories containing Unix executables.

More info on the behaviour of the standard git client can be found here: http://stackoverflow.com/questions/1580596

A particular example of what happens on the go-git client is then found in the following earlier issue (which I will close in favour of this one for clarity): #373

Up to now I failed to find where the index tree is read from the cloned file. If you give me a couple of hints where to search I would be happy to work on a patch.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions