A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/extrawurst/gitui/issues/2298 below:

Does not support custom git config path via GIT_CONFIG_GLOBAL · Issue #2298 · gitui-org/gitui · GitHub

Describe the bug
I tried to commit some changes and got the following error

commit error:
git error:config value 'user.name' was not found; class=Config (7); code=NotFound (-3)

It turns out it cannot find user.name or any other config because I have my git configuration in a different path from ~/.gitconfig, which I achieved by setting GIT_CONFIG_GLOBAL to ~/.config/git/config.ini.

To Reproduce
Steps to reproduce the behavior:

  1. export GIT_CONFIG_GLOBAL=~/.config/git/config.ini (or any other location)
  2. Go to a git repository and make some changes
  3. Commit through gitui
  4. See error

Expected behavior
It should check for this environment variable and use it if set.
Also there is another environment variable that is related: GIT_CONFIG_SYSTEM.

Workaround

ln -s $GIT_CONFIG_GLOBAL ~/.gitconfig

Context (please complete the following information):


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4