guyzmo / guyzmo/git-repo

config wizard does not work if ~/.config/git/config contains include statements

Open
#153 5 comments 0 reactions 0 assignees View on GitHub
backlog bug help wanted
Dominant language
Python
Stars
855
Forks
92
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce:

* Make sure `~/.git` does not exist
* Create ~/.config/git/config` with a least two includes, like so:

```ini
[include]
path = /path/to/1
path = /path/to/2
```
Run `git-repo config`, do the oauth dance.

Nothing is stored.

PS: I think this is a bug in the code that reads and writes git config. If I were you, I'll just run
`git config --get foo.bar` and `git config --global foo.bar 42` instead of using a re-implementation of git config parsing in Python.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue by creating ~/.config/git/config with two include entries, ensuring ~/.git is absent, and running git-repo config through the OAuth flow. Trace the Python code that reads and writes Git configuration, then verify that the configuration is stored successfully when include statements are present.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.