godotengine / godotengine/godot-git-plugin

Git plugin makes unwanted changes in git config

Open
#295 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
954
Forks
98
PR merge metrics
No merged PRs in 30d

Description

**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).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.