logo

blog

My little blog can’t be this cute! git clone https://hacktivis.me/git/blog.git
commit: 8902145aa149db7a0dd44109a43254469d6402e4
parent 641267761a53152907132cec7a99c85f7287ca7b
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>