TheLocehiliosan / yadm

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

Accidental reinit #396

Closed xeruf closed 2 years ago

xeruf commented 2 years ago

This question is about

Describe your question

I ran git init and somehow git took that to reinitialize the yadm repo. It is an issue that popped up only recently, idk if that is related to a new update - because no git repositories are recognized below my HOME anymore. Anyways, I now get this error:

❯ yadm status
warning: core.bare and core.worktree do not make sense
warning: core.bare and core.worktree do not make sense
warning: core.bare and core.worktree do not make sense
warning: core.bare and core.worktree do not make sense
fatal: unable to set up work tree using invalid config
xeruf commented 2 years ago

Okay, removing the key core.bare from $HOME/.local/share/yadm/repo.git/config at least solves these fatal warnings.

TheLocehiliosan commented 2 years ago

Can you explain the actions that led to your issue again?

You ran "git init" (not yadm init)? What directory where you in when you did? Also, what version of Git to you use?

xeruf commented 2 years ago

Something was off with my setup and redirected any git command to yadm, so git init would tamper with the yadm dir regardless of the directory I was in, seems fixed now after a reboot.