svetlyak40wt / dotfiler

Shell agnostic git based dotfiles package manager, written in Python.
238 stars 31 forks source link

Crash which I don't understand #24

Open fniessen opened 4 years ago

fniessen commented 4 years ago

Dear @svetlyak40wt ,

I'm trying out dotfiler on both Windows (with Cygwin) and Windows (with WSL) for a couple of days. So far, so good, better than my in-house solution -- thanks a lot!

Today, got this, after having renamed one "castle" in the ~/.dotfiler directory.

image

Maybe not the best thing to do?

Best regards, Fabrice

svetlyak40wt commented 4 years ago

What exactly did you rename, Fabrice?

fniessen commented 4 years ago

I did clone your tool into ~/.dotfiler/

git clone https://github.com/svetlyak40wt/dotfiler ~/.dotfiler

Then, add "castles":

~/.dotfiler/bin/dot add git@github.com:fniessen/dotfiles_default.git
~/.dotfiler/bin/dot add git@github.com:fniessen/dotfiles_work.git
~/.dotfiler/bin/dot add git@github.com:fniessen/dotfiles_home.git

~/.dotfiler/bin/dot add git@github.com:fniessen/git-leuven
~/.dotfiler/bin/dot add git@github.com:fniessen/shell-extras-leuven
~/.dotfiler/bin/dot add git@github.com:fniessen/shell-leuven
~/.dotfiler/bin/dot add git@github.com:fniessen/svn-leuven

Finally, use dotfiler to manage symlinks:

~/.dotfiler/bin/dot update

That was for the initialization, right?

Now, the thing that provoked an error, is that I renamed the Git repo directories in ~/.dotfiler:

~/.dotfiler/dotfiles_work -> ~/.dotfiler/dotfiles_1_work
~/.dotfiler/dotfiles_home -> ~/.dotfiler/dotfiles_5_home

Then, re-run 'dot update'... and got the above error.

Is this clearer?

svetlyak40wt commented 4 years ago

Hmm, seems this is not a good idea to rename repositories :)

svetlyak40wt commented 4 years ago

Don't have time to investigate this right now :(