On Fri, Apr 11, 2014 at 01:14:31PM +0200, Olivier Berger wrote:
> 
> I've created a project with a "private" git repo, i.e. where only members 
> have read (and write) access.
> 
> Personnal repo creation cronjobs fail with something like :
> # /usr/share/gforge/cronjobs/create_scm_repos.php 
> Initialized empty shared Git repository in /tmp/testgitn-XL9Q7v.git/
> PHP Warning:  
> fopen(/var/lib/gforge/chroot/scmrepos/git/testgit/users/obergix.git/hooks/post-update):
>  failed to open stream: No such file or directory in 
> /usr/share/gforge/plugins/scmgit/common/GitPlugin.class.php on line 298
> PHP Warning:  fwrite() expects parameter 1 to be resource, boolean given in 
> /usr/share/gforge/plugins/scmgit/common/GitPlugin.class.php on line 299
> PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in 
> /usr/share/gforge/plugins/scmgit/common/GitPlugin.class.php on line 300
> 
> I believe the git clone command should be changed from :
> git clone --bare $main_repo $repodir
> to
> cd $repodir; git clone --bare $main_repo .
> 

FWIW a possible patch would be like 
https://fusionforge.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=fusionforge/users/olberger.git;a=commitdiff;h=07d6c7142d39691dc2828b2882bb1df2999d81e3

Hope this helps.

Best regards,

-- 
Olivier BERGER 
http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to