Hi, it seems that when `allow-symlinks` option is enabled, file which was already added cannot be overwritten by a symlink, see a test.
mkdir test && cd test fossil init .fossil && fossil open .fossil fossil set allow-symlinks 0 cp ~/.ssh/default.pub . && fossil add default.pub && fossil ci -m file fossil set allow-symlinks 1 ln -fs ~/.ssh/default.pub default.pub fossil ci -m symlink New_Version: 163fd28f692b571070e1471fa3236ba46b0f121cbc11553c4203fc937831dca5 ERROR: [default.pub] is 27 bytes on disk but 726 in the repository NOTICE: Repository version of [default.pub] stored in [file-f8c1d36b817714f6] working checkout does not match what would have ended up in the repository: 6810fe7cfca414a1c2f36cea0619a695 versus 8fa57811ea8fcd434443c61628f62d73 So, if I want at some point to replace file by a symlink, first need to remove that file, commit changes, and only then add a symlink, right? (Tested with trunk version.) -- https://www.juef.space/
signature.asc
Description: PGP signature
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

