inz/gitorious-cookbooks — Issue #1: Git clone Gitorious fails
Author: ronaldve
Created: 2011-11-24 09:29:00+00:00
State: open

Somehow the part where Gitorious gets cloned fails and the chef installation stops.
When I switch to the git user (su git) and execute the 'git clone git://gitorious.org/gitorious/mainline.git /var/www/gitorious' command manually it works just fine. Then I have to exit back to the root user and execute the 'chef-solo' command to finish the installation.

Here is a part of the log:
[Thu, 24 Nov 2011 10:05:30 +0100] FATAL: Chef::Exceptions::ShellCommandFailed: git[/var/www/gitorious] (gitorious::default line 58) had an error: Expected process to exit with [0], but received '128'
---- Begin output of git clone git://gitorious.org/gitorious/mainline.git /var/www/gitorious ----
STDOUT: Initialized empty Git repository in /var/www/gitorious/.git/
STDERR: fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
---- End output of git clone git://gitorious.org/gitorious/mainline.git /var/www/gitorious ----
Ran git clone git://gitorious.org/gitorious/mainline.git /var/www/gitorious returned 128