guyzmo/git-repo

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

Aberta

#153 aberto em 7 de mai. de 2017

 (5 comentários) (0 reação) (0 responsável)Python (91 forks)batch import
backlogbughelp wanted

Métricas do repositório

Stars
 (854 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Steps to reproduce:

  • Make sure ~/.git does not exist
  • Create ~/.config/git/config` with a least two includes, like so:
[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.

Guia do colaborador