Details
Description
if you create the directory where you want the git checkout to be cloned to before the git resource runs, the provider will believe it is updating an existing checkout instead of cloning the repo for the first time.
The error message is like this:
[Wed, 03 Nov 2010 00:50:44 +0000] ERROR: Re-raising exception: Chef::Exceptions::Exec - git fetch origin && git fetch origin --tags && git reset --hard 5c3c9be721d176eb2a6c58b534ba1f70822f1bac returned 128, expected 0 ---- Begin output of git fetch origin && git fetch origin --tags && git reset --hard 5c3c9be721d176eb2a6c58b534ba1f70822f1bac ---- STDOUT: STDERR: fatal: Not a git repository (or any of the parent directories): .git ---- End output of git fetch origin && git fetch origin --tags && git reset --hard 5c3c9be721d176eb2a6c58b534ba1f70822f1bac ----
Changing to a blocker this one is really annoying and also makes it impossible to create a repo as a non-root user if the parent directory has restrictive permissions.