[PATCH 1/1] scan-tree: handle error in git_config_from_file()

Christian Hesse list at eworm.de
Tue Mar 8 16:08:04 CET 2016


Christian Hesse <list at eworm.de> on Tue, 2016/03/08 16:01:
> > > It gives:
> > > 
> > > Error reading config /path/to/repository.git/config: Permission denied
> > > (13) fatal: unable to access '/path/to/repository.git/config':
> > > Permission denied
> > > 
> > > Looks like this is fatal in git...    
> > 
> > Is that when listing repositories or when trying to display that
> > specific repo?  I suspect that's a result of prepare_repo_cmd() setting
> > up for a specific repository.  
> 
> Listing repositories works. This is when displaying the repository with
> bad/denied config file.

Looks like it dies in cgit.c line 577 in:

setup_git_directory_gently(&nongit);
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20160308/8fd980fa/attachment.asc>


More information about the CGit mailing list