diff options
author | Munyoki Kilyungi | 2024-09-04 12:20:04 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2024-09-04 12:20:04 +0300 |
commit | 08fa22fea35abbc063d9c8f2f96550d998adb750 (patch) | |
tree | 9444aac3af2fd56e2d512e960b9f92b72ca2313c /topics/ADR | |
parent | a9e0c6fc8c93189471bccf7c8292f6e752f74c84 (diff) | |
download | gn-gemtext-08fa22fea35abbc063d9c8f2f96550d998adb750.tar.gz |
Create new ADR entry for markdown editor bare repo changes.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'topics/ADR')
-rw-r--r-- | topics/ADR/gn-guile/000-markdown-editor-push-to-bare-repo.gmi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/topics/ADR/gn-guile/000-markdown-editor-push-to-bare-repo.gmi b/topics/ADR/gn-guile/000-markdown-editor-push-to-bare-repo.gmi new file mode 100644 index 0000000..bdd40af --- /dev/null +++ b/topics/ADR/gn-guile/000-markdown-editor-push-to-bare-repo.gmi @@ -0,0 +1,18 @@ +# Extend Markdown Editor to push to Git Bare Repo + +* author: bonfacem +* status: proposed +* reviewed-by: alexm, jnduli + +## Context + +The gn-guile markdown editor currently reads from normal git repositories. However, for GN's self-hosted git repository, we use bare repositories. Bare repositories only store the git objects, therefore we can't edit files directly. + +## Decision + +gn-guile and the cgit instance run in the same server. We will have one normal repository, and the bare repository, configurable by: "CURRENT_REPO_PATH", which has the normal raw files; and "CGIT_REPO_PATH" which is the bare repository. We will make edits to the normal repository, and once that is done, push locally to the cgit instance. + +## Consequences + +* When creating the gn-guile container, this introduces extra complexity in that will have to make sure that the container has the correct write access to the bare repository in the container. +* With this, we are coupled to our GN git set-up. |