[darcs-devel] [issue1414] wish: recognize unreadable repositories

Trent Buck bugs at darcs.net
Sat Apr 4 11:27:10 UTC 2009


New submission from Trent Buck <trentbuck at gmail.com>:

My /etc directory is under version control.  Because this repository
contains confidental information, _darcs is not readable by normal
users.

Currently Darcs treats /etc as "not a repository".  It would be better
if could recognize an unreadable _darcs and report something like "is
a repository, but not accessible".

Here is a transcript demonstrating the problem.

    $ sudo sh -c 'umask 077 && darcs init'
    $ ls -al
    total 0
    drwx------ 3 twb  twb   60 2009-04-04 22:26 .
    drwxrwxrwt 9 root root 600 2009-04-04 22:25 ..
    drwx------ 5 root root 140 2009-04-04 22:26 _darcs
    $ darcs show repo

    darcs failed:  Unable to "darcs show repo" here.

    You need to be in a repository directory to run this command.

----------
messages: 7573
nosy: dmitry.kurochkin, kowey, simon, thorkilnaur, twb
status: unread
title: wish: recognize unreadable repositories

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1414>
__________________________________


More information about the darcs-devel mailing list