Git chef recipe not working

I used the following chef's stanza to try and check out the github repository:

git "/home/ubuntu" do repository "git://github.com/kmerenkov/brukva.git" revision "master" action :checkout user "ubuntu" end 

The chef has no errors, and the resource appears as updated (even if the files are not in the destination directory).

 * git[/home/ubuntu] action checkout (up to date) 

What am I doing wrong?

+6
source share
1 answer

Try:

 git "/home/ubuntu/brukva" do repository "git://github.com/kmerenkov/brukva.git" revision "master" action :sync user "ubuntu" end 

It does nothing if your target directory exists when using :checkout , because it assumes that your check has already been completed, you can see the chef say "to date."

Contact your git provider source

+11
source

Source: https://habr.com/ru/post/957676/


All Articles