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.
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
Expected behavior
Workaround
sudo chown -R ${USER}:${USER} ~/.homesick/repos/homeshick/.git/