summaryrefslogtreecommitdiff
path: root/.mrconfig.in
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-12-27 00:01:48 +0000
committerSean Whitton <spwhitton@spwhitton.name>2019-12-27 00:01:48 +0000
commit3b9bacad7b208963a282a9a944404e46b23e9f65 (patch)
treedc674bb0f181401b1afc1f2d902ebe7e1c0b8383 /.mrconfig.in
parentd325a841af3438290bcc58ecf169af5eae44f7bd (diff)
downloaddotfiles-3b9bacad7b208963a282a9a944404e46b23e9f65.tar.gz
use sed rather than echo to edit .git/info/attributes
Diffstat (limited to '.mrconfig.in')
-rw-r--r--.mrconfig.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/.mrconfig.in b/.mrconfig.in
index 42e810f9..b3afda75 100644
--- a/.mrconfig.in
+++ b/.mrconfig.in
@@ -250,10 +250,11 @@ post_checkout =
git annex enableremote cloud
git annex group . backup
- # `git annex init` adds an additional line to .git/info/attributes
- # which disables the smudge filter for dotfiles, but this repo
- # needs the smudge filter for dotfiles, so override it
- echo "* filter=annex" >.git/info/attributes
+ # `git annex init` (until v8) adds an additional line to
+ # .git/info/attributes which disables the smudge filter for
+ # dotfiles, but this repo needs the smudge filter for dotfiles, so
+ # override it
+ sed -i'' .git/info/attributes -e '/^.* !filter$/d'
fixups =
chmod 600 .passwddb.pet \