aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/git-annex_support.mdwn
diff options
context:
space:
mode:
authorhttps://id.koumbit.net/anarcat <https://id.koumbit.net/anarcat@web>2013-12-07 21:16:54 -0400
committeradmin <admin@branchable.com>2013-12-07 21:16:54 -0400
commit896c42aad11b37c9f75671f5075fd9a565a1cd2a (patch)
tree7ceba47c9588fcab7986471b3804b5bf7db7e0a2 /doc/todo/git-annex_support.mdwn
parent7853fe44cae9051d8c1f92898c95122e48f946a6 (diff)
downloadikiwiki-896c42aad11b37c9f75671f5075fd9a565a1cd2a.tar
ikiwiki-896c42aad11b37c9f75671f5075fd9a565a1cd2a.tar.gz
try to provide a clearer set of instructions while I attempt to actually make this work here
Diffstat (limited to 'doc/todo/git-annex_support.mdwn')
-rw-r--r--doc/todo/git-annex_support.mdwn34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/todo/git-annex_support.mdwn b/doc/todo/git-annex_support.mdwn
index 9ebd11e06..b6d814d91 100644
--- a/doc/todo/git-annex_support.mdwn
+++ b/doc/todo/git-annex_support.mdwn
@@ -9,3 +9,37 @@ Another solution would be to make ikiwiki a remote itself and allow users to pus
> direct mode, but I'm not sure that's really desirable here).
> I'd like to make symlinks possible without compromising security,
> but it'll be necessary to be quite careful. --[[smcv]]
+
+First implementation
+====================
+
+So as the [[discussion]] shows, it seems it's perfectly possible to actually do this! There's this [gallery site](http://stockholm.kalleswork.net) which uses the [[plugins/contrib/album]] plugin and git-annex to manage its files.
+
+The crucial steps are:
+
+ 1. setup a git annex remote in `$srcdir`
+
+ cd $srcdir
+ git annex init
+
+ 2. make the bare repository (the remote of `$srcdir`) ignored by git-annex:
+
+ cd $srcdir
+ git config remote.origin.annex-ignore true
+ git config remote.origin.annex-sync false
+
+ (!) This needs to be done on *ANY* clone of the repository, which is annoying, but it's important because we don't want to see git-annex stuff in the bare repo. (why?)
+
+ 3. enable direct mode on `$srcdir` because ikiwiki ignores symlinks for [[security]] reasons:
+
+ cd $srcdir
+ git annex direct
+
+This assumes you know what `srcdir`, `repository` and so on mean, if you forgot (like me), see this reference: [[rcs/git/]].
+
+What remains to be clarified:
+
+ * how do files get pushed to the `$srcdir`? Only through the web interface?
+ * why do we ignore the bare repository?
+
+See the [[discussion]] for a followup on that. --[[anarcat]]