ylogx/dotfiles

hs pull might fail because of permission issue

ylogx opened this issue · 0 comments

ylogx commented

hs pull might fail because the initial ansible script was running as root user.

Screenshot of situation from 2020-04-29 19-20-27

What is happening?

Error:

$ hs pull
pull dotfiles
pull homeshick
error Unable to pull /home/chaudhary/.homesick/repos/homeshick. Git says:
error: cannot open .git/FETCH_HEAD: Permission denied

Screenshot of failure from 2020-04-29 19-25-56

Expected behavior

hs pull should work properly
Screenshot of success from 2020-04-29 19-26-28

Workaround

sudo chown -R ${USER}:${USER} ~/.homesick/repos/homeshick/.git/