From: asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 Date: Thu, 7 Oct 2021 05:53:23 +0000 (+0000) Subject: (no commit message) X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~83^2~4^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bcf7bd8505fb7ff1c04fdc3839fa5585e0d4e45c;p=git-annex.git --- diff --git a/doc/todo/windows_support.mdwn b/doc/todo/windows_support.mdwn index 0c365c805d..1d930b5e73 100644 --- a/doc/todo/windows_support.mdwn +++ b/doc/todo/windows_support.mdwn @@ -143,7 +143,20 @@ Do the following: 1. Enable Developer mode in Windows settings so that symlinks can be created without elevated privileges. 2. Mount the NTFS drive with metadata option. This line can be added in `/etc/fstab`: `C: /mnt/c drvfs metadata,case=dir`. I prefer to also add `uid=1000,gid=1000,fmask=0133,dmask=0022`. 3. Create an empty directory where your repo will be. Then enable case sensitivity `setfattr -n system.wsl_case_sensitive -v 1 `. This attribute will be automatically and recursively applied to any future subdirectories. If setfattr(1) errs out with permission denied, you can also effect the same change in CMD.EXE / Windows Powershell as admin with `fsutil file setCaseSensitiveInfo enable`. You can check that the setting is enabled with `getfattr -n system.wsl_case_sensitive ` under WSL1. -4. Create the repo however you like. Immediately after `git annex init`, do `git config annex.crippledfilesystem true`. If you set `crippledfilesystem` before init, then git annex will try to enter an adjusted branch and trigger the first bug. If you do not set `crippledfilesystem` after init, you will trigger the second bug when doing `git annex add`. +4. Create the repo however you like (see steps below for cloning a repo with ssh). Immediately after `git annex init`, do `git config annex.crippledfilesystem true`. If you set `crippledfilesystem` before init, then git annex will try to enter an adjusted branch and trigger the first bug. If you do not set `crippledfilesystem` after init, you will trigger the second bug when doing `git annex add`. + +### Cloning a repo with ssh + +When cloning a repo with ssh, `git annex init` will fail to enable ssh remotes if `crippledfilesystem` is not set, but you also cannot set it before init. Follow these steps to avoid unrelated history in the `git-annex` branch. + + git clone annex + cd annex + git branch git-annex origin/git-annex + git remote remove origin + git annex init + git config annex.crippledfilesystem true + git remote add origin + git annex sync ### Using symlinks and locked files