TheLocehiliosan / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
4.92k stars 176 forks source link

,gitconfig issues #427

Closed YenLegion closed 1 year ago

YenLegion commented 1 year ago

Hi, I am having some issues getting alternate .gitconfig files setup. I tried setting it up using alts, then read the other issue regarding the include but still have had not luck. I tried to parse what I could from the instructions given in the other issue, but maybe I am missing something. Would you mind explaining to me how to use alternative .gitconfig files? Thank you.

Edit - Not sure if this is useful, but when trying alts, I ran into this error.

❯ yadm add .gitconfig.local##distro.Ubuntu,hostname.bun3 fatal: exceeded maximum include depth (10) while including /home/yen/.gitconfig.local from /home/yen/.gitconfig.local This might be due to circular includes.

It repeated several times.

TheLocehiliosan commented 1 year ago

It sounds like you put include directives in your included .gitconfig.local. Can you show the contents of the files?

bcdady commented 1 year ago

@TheLocehiliosan It looks like this is the full file in question: .gitconfig##distro.Ubuntu,hostname.bun3 @YenLegion: Please confirm.

TheLocehiliosan commented 1 year ago

@YenLegion - I cloned your repo "dot", and I wasn't able to produce the error you have. I'm guessing the files have since changed. I do not see any includes related to yadm alternates in your gitconfig files.

Is this still a problem you're having?

YenLegion commented 1 year ago

Hey! It's all working well now by using alternates, no include directives. I've changed up my dotfiles quite a bit recently. Thanks for the support, sorry it took so long to reply.