You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently split out my gitconfig file into smaller, reusable and shareable, files using the include.path configuration option (added in git 1.7.10). See the git config docs for all the details. I’m doing this so that I can my configuration shared in my dotfiles repo while having a unique machine specific file. Unfortunately GitUp seems to choke on this as it can’t find the configuration values.
For example when I try to commit I get this error:
However git is able to find the option:
$ cd~# not a repo
$ git config user.name
Aron Cedercrantz
Configuration setup
[user]email = work@example.com or personal@example.com[include]path = ~/.dotfiles/git/config # git doesn’t like symlinks for this specific statement so be specific
The ~/.dotfiles/git/config file then contains my shared settings, for example:
[user]name = Aron Cedercrantz[core]excludesfile = ~/.gitignoreattributesfile = ~/.gitattributesquotepath = false[include]path = ~/.dotfiles/git/aliases# and so on
Note that I’m also importing another file in the shared config (~/.dotfiles/git/aliases). Which is fully supported by git.
I had a look at the libgit2 code but couldn’t figure out where to resolve this. Sorry about that.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. GitUp is using an outdated version of libgit2 but no matter what this is not at the GitUp level that this would solved. Hopefully, this is or will be implemented in libgit2.
Hi there, a bug report for you.
Recently split out my gitconfig file into smaller, reusable and shareable, files using the
include.path
configuration option (added in git 1.7.10). See the git config docs for all the details. I’m doing this so that I can my configuration shared in my dotfiles repo while having a unique machine specific file. Unfortunately GitUp seems to choke on this as it can’t find the configuration values.For example when I try to commit I get this error:
However git is able to find the option:
Configuration setup
The
~/.dotfiles/git/config
file then contains my shared settings, for example:Note that I’m also importing another file in the shared config (
~/.dotfiles/git/aliases
). Which is fully supported by git.I had a look at the libgit2 code but couldn’t figure out where to resolve this. Sorry about that.
The text was updated successfully, but these errors were encountered: