Fix some markdown formatting problems
This commit is contained in:
parent
00843b296b
commit
5c6b875f10
1 changed files with 52 additions and 44 deletions
|
@ -13,28 +13,11 @@ The following steps are tested on Windows 10 21h1 with Ubuntu 20 and are designe
|
||||||
* If the repository is created by cloning, create local git-annex branch from the remote branch and remove the origin remote before `git annex init`.
|
* If the repository is created by cloning, create local git-annex branch from the remote branch and remove the origin remote before `git annex init`.
|
||||||
* Set `git config annex.crippledfilesystem true` immediately after `git annex init`.
|
* Set `git config annex.crippledfilesystem true` immediately after `git annex init`.
|
||||||
* Add the origin remote back if it was previously removed.
|
* Add the origin remote back if it was previously removed.
|
||||||
* Safety of locked files will require these settings and scripts
|
* Safety of locked files will require these settings and scripts and the patch below.
|
||||||
|
* `git config annex.freezecontent-command 'wsl-freezecontent %path'`
|
||||||
* `git config annex.thawcontent-command 'wsl-thawcontent %path'`
|
* `git config annex.thawcontent-command 'wsl-thawcontent %path'`
|
||||||
|
|
||||||
#!/usr/bin/env bash
|
```
|
||||||
|
|
||||||
if [ -f "$1" ]; then
|
|
||||||
PERM='(DE,WD,AD)'
|
|
||||||
elif [ -d "$1" ]; then
|
|
||||||
PERM='(DE,DC,WD,AD)'
|
|
||||||
else
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
OUTPUT="$(icacls.exe "$(wslpath -w "$1")" /grant "Authenticated Users:$PERM")"
|
|
||||||
|
|
||||||
if [ "$?" -ne 0 ]; then
|
|
||||||
echo "$OUTPUT"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
* `git config annex.freezecontent-command 'wsl-freezecontent %path'`
|
|
||||||
|
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [ -f "$1" ]; then
|
if [ -f "$1" ]; then
|
||||||
|
@ -56,6 +39,29 @@ The following steps are tested on Windows 10 21h1 with Ubuntu 20 and are designe
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ -f "$1" ]; then
|
||||||
|
PERM='(DE,WD,AD)'
|
||||||
|
elif [ -d "$1" ]; then
|
||||||
|
PERM='(DE,DC,WD,AD)'
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
OUTPUT="$(icacls.exe "$(wslpath -w "$1")" /grant "Authenticated Users:$PERM")"
|
||||||
|
|
||||||
|
if [ "$?" -ne 0 ]; then
|
||||||
|
echo "$OUTPUT"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
** Patches **
|
** Patches **
|
||||||
|
|
||||||
This patch allows permissions and freeze/thaw hooks to run on a crippled file system.
|
This patch allows permissions and freeze/thaw hooks to run on a crippled file system.
|
||||||
|
@ -188,6 +194,7 @@ index 39853c894..2d66c1461 100644
|
||||||
|
|
||||||
* Symlinks are invalid in Windows if created before the target file exists, such as after `git annex add` or `git annex get`. This can be fixed by recreating them with any method, such as delete them and `git checkout`. Below is a sample script.
|
* Symlinks are invalid in Windows if created before the target file exists, such as after `git annex add` or `git annex get`. This can be fixed by recreating them with any method, such as delete them and `git checkout`. Below is a sample script.
|
||||||
|
|
||||||
|
```
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import pathlib
|
import pathlib
|
||||||
|
@ -203,6 +210,7 @@ index 39853c894..2d66c1461 100644
|
||||||
do(c)
|
do(c)
|
||||||
|
|
||||||
do(pathlib.Path('.'))
|
do(pathlib.Path('.'))
|
||||||
|
```
|
||||||
|
|
||||||
* Sometimes there will SQLite errors using multiple jobs but retrying will work most of the time.
|
* Sometimes there will SQLite errors using multiple jobs but retrying will work most of the time.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue