Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitUp isn’t following include.path statements in git configs #246

Closed
rastersize opened this issue Dec 1, 2016 · 1 comment
Closed
Labels

Comments

@rastersize
Copy link

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:
screen shot 2016-12-01 at 14 54 02

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 = ~/.gitignore
  attributesfile = ~/.gitattributes
  quotepath = 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.

@swisspol
Copy link
Contributor

swisspol commented Dec 1, 2016

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.

@swisspol swisspol closed this as completed Dec 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants