A
A
Andrey Rakovskiy2019-09-29 18:41:56
git
Andrey Rakovskiy, 2019-09-29 18:41:56

Why doesn't git work with Vagrant on MacOS?

There is a virtual server on Vagrant. A folder from my MacOS machine has been uploaded to this server.
I have a folder /Users/admin/Vagrant/site
This folder on the vagrant machine is displayed as /app
Authorizes on the "vagrant ssh" machine, go to /app/www and do a git clone there.
I get an error: fatal: Unable to create temporary file '/app/www/site-master/.git/objects/pack/tmp_pack_XXXXXX': Permission denied
fatal: index-pack failed
I can create and edit files, folders from vagrant. I tried setting permissions via chown and chmod to /app/www, but it doesn't help.
Everything works fine on another PC.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Rakovskiy, 2019-10-01
@ Rakovskiy28

Understood. I rolled back the Ubuntu version and it worked.
config.vm.box='bento/ubuntu-16.04'
config.vm.box_version="201812.27.0"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question