Git folder to work in
Problem / use case
Currently git backup syncs with the / of a git repository, I wish to specify a working directory inside that repo to use a monorepo for code and docs.
Proposed behavior
Add an environment variable GIT_BACKUP_PATH which allows use to specify the relative path inside the repo to work in with root and assets in there.
Is this ready to be implemented, or does it need discussion first?
Maybe a discussion, not sure.
Would a LEAFWIKI_GIT_BACKUP_PATH (e.g. docs/wiki) that makes the local backup repo root $DATA/.git-backup/
Yes, that would work for me.
Proposed approach: rather than copying root/+assets/ into a subdir each backup cycle, commit them straight into the configured prefix via git plumbing. build the tree objects, splice under
Would like to try it this way. Thanks @richardmilles for #1444.
I'll try to clone git regular but work with "--data-dir" in another folder with leafwiki, will report here.