Skip to content

Set the git ignorecase on none-case sensitive filesystems #4

@rpkoller

Description

@rpkoller

If a development environment is set up with the composer template then the git clone happens inside the container and not on the host, afterwards the files are getting synced via mutagen onto the host. on none case sensitive file systems that could cause errors on checkout after switching to a feature branch (for example https://www.drupal.org/project/drupal/issues/2983456 MR3037) due to a commit https://git.drupalcode.org/project/drupal/-/commit/8b368d712d8390076574425370b327e2355c553c that fixed some spelling errors changing some words from upper to lower case or the other way around. the following addition to the install.yaml file in my own adoption of the justafish addon fixed the problem entirely since i am working on macos :

cd ../repos/drupal && git config core.ignorecase true

but such an addition doesnt make any sense for linux based file systems which are case sensitive. so would it make sense to add some logic so that the git config is only applied if the filesystem the addon is used on is using a none case sensitive file system?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions