Skip to content

Git plugin makes unwanted changes in git config #295

@gshadows

Description

@gshadows

Environment:

  • Godot version: v4.4.1.stable.official [49a5bc7b6]
  • OS: Ubuntu Budgie
  • Plugin: Git plugin (installed from AssetLib)

I'm using modified .git/config file where I set core.filemode = false.
The Git plugin automatically changes this parameter back to true when I open the project in Godot.

When I attempted to prevent modification by setting the file attributes to 444 (read-only), the plugin still managed to modify the file and reset the attributes to 664. This suggests the plugin is deleting and recreating the config file rather than modifying it in place.

The issue resolves when I remove the Git plugin. This behavior is particularly problematic because:

  1. I need to maintain core.filemode = false as my project resides on an NTFS filesystem (shared with Windows)
  2. I'm concerned the plugin might silently modify other configuration options without my knowledge

Steps to Reproduce:

  1. Set core.filemode = false in .git/config
  2. Open the project in Godot with Git plugin enabled
  3. Observe the parameter has been changed back to true

Expected Behavior:
The Git plugin should respect existing Git configuration settings and not automatically modify .git/config without user consent.

Workaround:
Currently, the only solution is setting .git/config file owner to root (with exception of removal of Git plugin).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions