Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hs pull might fail because of permission issue #21

Open
ylogx opened this issue Apr 29, 2020 · 0 comments
Open

hs pull might fail because of permission issue #21

ylogx opened this issue Apr 29, 2020 · 0 comments

Comments

@ylogx
Copy link
Owner

ylogx commented Apr 29, 2020

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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant