logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git
commit: bd1b79d5508936a60e5d086daa2bba56bea53652
parent b6123e8ffab9d02f754946b2b43966b6a5c5eacb
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 20 Feb 2019 09:26:40 +0100

articles/My git server setup.html: Fix syntax

Diffstat:

Marticles/My git server setup.html5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/articles/My git server setup.html b/articles/My git server setup.html @@ -5,13 +5,12 @@ <h2>Added git-daemon</h2> <p>That one was even more simple, just had to point to where the git repositories are stored</p> <h2>Wanted a better interface</h2> -<p>While searching for alternatives to GNU I saw <a href="http://git.2f30.org/stagit/">stagit</a>, a static git generator (I don’t like CGI, specially when it could have access to my git repos), to use it I added theses lines to the post-update-hook +<p>While searching for alternatives to GNU I saw <a href="http://git.2f30.org/stagit/">stagit</a>, a static git generator (I don’t like CGI, specially when it could have access to my git repos), to use it I added theses lines to the post-update-hook</p> <pre><code>repo=$(pwd) cd "$(pwd | sed s/.git$//)" &amp;&amp; stagit -c "$repo.cache" "$repo" -cd /git &amp;&amp; stagit-index *.git &gt; /git/index.html</code></pre></p> +cd /git &amp;&amp; stagit-index *.git &gt; /git/index.html</code></pre> <h2>Garbage Collector</h2> <p>It’s not like my repos were getting big, git is supposed to do that itself but it seems like it doesn’t, so I’m doing <code>git gc</code> each time, which isn’t very optimised.</p> <h2>Final Hook code (deploy, stagit, …)</h2> <p>This can be seen in my <a href="/git/utils">/git/utils</a> repo, in the <code>git-hooks</code> folder.</p> <p>Also the blog is a symlink to <code>/git/blog.work</code> which are the raw files done by that hook.</p> -</code></pre>