andsens / homeshick

git dotfiles synchronizer written in bash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Always says my castles are outdated no matter I just refreshed

binarykitchen opened this issue · comments

When I just run homeshick refresh dotfiles, confirm with y and run it again, it says my dotfiles are outdated uh?

michael.heuberger@binarykitchen ~ ❯❯❯ homeshick refresh dotfiles
     outdated dotfiles
     outdated homeshick
      refresh The castles dotfiles,homeshick are outdated.
        pull? [yN] y
         pull dotfiles
         pull homeshick
michael.heuberger@binarykitchen ~ ❯❯❯ homeshick refresh dotfiles
     outdated dotfiles
     outdated homeshick
      refresh The castles dotfiles,homeshick are outdated.
        pull? [yN] y
         pull dotfiles
         pull homeshick
michael.heuberger@binarykitchen ~ ❯❯❯

Also tried with the pull command, same weird result

michael.heuberger@binarykitchen ~ ❯❯❯ homeshick pull dotfiles
         pull dotfiles
michael.heuberger@binarykitchen ~ ❯❯❯ homeshick pull dotfiles
         pull dotfiles
michael.heuberger@binarykitchen ~ ❯❯❯ homeshick refresh 1 dotfiles
        fresh dotfiles
michael.heuberger@binarykitchen ~ ❯❯❯ homeshick pull dotfiles
         pull dotfiles
michael.heuberger@binarykitchen ~ ❯❯❯ homeshick refresh 1 dotfiles
        fresh dotfiles
michael.heuberger@binarykitchen ~ ❯❯❯

OK, that is indeed weird. I am unable to reproduce this. In order to diagnose this I need you to test this in a clean environment. Run test/interactive in the homeshick folder to get a shell running in a temporary home folder (run exit to quit). In that folder run:

homeshick clone git@github.com:binarykitchen/dotfiles
homeshick refresh
homeshick refresh

Paste a full copy of the results here or link to them in a gist.

Hmmm, thanks for the suggestions but dont know how to?

Run test/interactive in the homeshick folder to get a shell running in a temporary home folder

what is test/interactive? and which homeshick folder exactly? Tried to find answers myself in your documentation but couldn't find any real examples.

@binarykitchen, apologies for never getting back to you. I must've missed the notification somehow.
You start test/interactive by running homeshick cd homeshick to enter the homeshick dir, and then you simply run test/interactive. This drops you into a temporary test environment with a clean shell and $HOME, everything runs in /tmp and is cleaned up once you close the shell.

So when in the test env, clone your dotfiles and try the refresh again.

Closing this, feel free to reopen if you have some more info.