Issue 2537 Allow / as root directory

Title Allow / as root directory
Priority feature Status unknown
Milestone Resolved in
Superseder Nosy List e.ex.exi.exit
Assigned To

Created on 2017-05-14.01:34:05 by e.ex.exi.exit, last changed 2017-08-18.19:05:56 by gh.

msg19491 (view) Author: e.ex.exi.exit Date: 2017-05-14.01:34:03
1. Summarise the issue (what were doing, what went wrong?)


# cd /
# darcs init
# darcs add -r etc
Ignoring non-repository paths: etc/

darcs failed:  No valid arguments were given

2. What behaviour were you expecting instead?

darcs accepting adding /etc to repo

3. What darcs version are you using? 

darcs compiled on Jan 29 2015, at 09:56:37


[TAG 2.8.5

Ganesh Sittampalam <ganesh@earth.li>**20140825204639
 Ignore-this: 4e6c90569ceab19a231cdd4c5089b4c2

4. What operating system are you running?
linux debian jessie

5. Workaround (ugly): 

# mount --bind / repo
# cd repo
# darcs init  
# darcs add -r etc
# umount repo
msg19544 (view) Author: bf Date: 2017-08-10.13:34:56
Please note that darcs does not track file permissions. This makes a
repo at "/" highly insecure and I strongly recommend not to do that.
msg19604 (view) Author: gh Date: 2017-08-18.19:05:54
Note that the behaviour described by e.ex.exi.exit is the same in Darcs
HEAD (2.13). 

What seems weird is that Darcs enable to initialize a repository, then
does not let  us add files. I believe it would be better to have an
all-or-nothing behaviour.
Date User Action Args
2017-05-14 01:34:05e.ex.exi.exitcreate
2017-05-14 01:34:23e.ex.exi.exitsettitle: Alow / as root directory -> Allow / as root directory
2017-08-10 13:34:58bfsetmessages: + msg19544
2017-08-18 19:05:56ghsetmessages: + msg19604