summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRobin Schneider <ypid@riseup.net>2018-05-21 19:10:17 +0200
committerRobin Schneider <ypid@riseup.net>2020-01-03 22:35:13 +0100
commit138fdbc8d7f42bd54e0a1d0c07d5858b1055ea50 (patch)
tree75fdb0dfcb6458ac90e7930047b00d3870624fff /test
parente38e021ab324ea676a285ac4667f1fba1469a6bf (diff)
Add 'canonicalize-path' option to link
Dotbot had a hardcoded behaviour that the BASEDIR was always passed to os.path.realpath which "returns the canonical path of the specified filename, eliminating any symbolic links encountered in the path". This might not always be desirable so this commit makes it configurable. The use case where `canonicalize-path` comes in handy is the following: You want to provide dotfiles in the Filesystem Hierarchy Standard under `/usr/local/share/ypid_dotfiles/`. Now you want to provide `.config/dotfiles` as a default in `/etc/skel`. When you now pre-configure `/etc/skel` by running dotbot in it set has HOME, dotfiles will refer to `/usr/local/share/ypid_dotfiles/` and not `/etc/skel/.config/dotfiles` which does not look nice. This is related to but not the same as the `relative` parameter used with link commands.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions