logo

blog

My little blog can’t be this cute!
commit: 64046b417024357b054603e65f62844fc03f9ab6
parent: 68c69baa646c5d5375328406c83f81ebf0a71cb6
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  2 Apr 2017 14:40:08 +0200

articles: fix lt/gt

Diffstat:

Marticles/My git server setup.html6+++---
Marticles/Paramétrage de mon serveur git.html6+++---
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/articles/My git server setup.html b/articles/My git server setup.html @@ -8,7 +8,7 @@ <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 <pre><code>repo=$(pwd) cd "$(pwd | sed s/.git$//)" &amp;&amp; stagit -c "$repo.cache" "$repo" -cd /git &amp;&amp; stagit-index *.git &lt; /git/index.html</code></pre></p> +cd /git &amp;&amp; stagit-index *.git &gt; /git/index.html</code></pre></p> <h2>Deployement to blog</h2> <p>This one output an error(probably because the GIT_INDEX_FILE should not be empty) but it works so who cares :P</p> <code>GIT_INDEX_FILE='' git --work-tree=/srv/web/hacktivis.me --git-dir=/git/blog.git checkout -f</code> @@ -31,8 +31,8 @@ printf "$update_f" stagit cd "$(pwd | sed s/.git$//)" &amp;&amp; stagit -c "$repo.cache" "$repo" &amp;&amp; is_ok printf "$update_f" stagit-index -cd /git &amp;&amp; stagit-index *.git &lt; /git/index.html &amp;&amp; is_ok +cd /git &amp;&amp; stagit-index *.git &gt; /git/index.html &amp;&amp; is_ok # Errors but works -grep blog &gt;&gt;&gt;$repo &amp;&amp; printf "$update_f" blog &amp;&amp; GIT_INDEX_FILE='' git --work-tree=/srv/web/hacktivis.me --git-dir=/git/blog.git checkout -f &amp;&amp; is_ok +grep blog &lt;&lt;&lt;$repo &amp;&amp; printf "$update_f" blog &amp;&amp; GIT_INDEX_FILE='' git --work-tree=/srv/web/hacktivis.me --git-dir=/git/blog.git checkout -f &amp;&amp; is_ok </code></pre> diff --git a/articles/Paramétrage de mon serveur git.html b/articles/Paramétrage de mon serveur git.html @@ -8,7 +8,7 @@ <p>En cherchant des alternatives au GNU je suis tombé sur <a href="http://git.2f30.org/stagit/">stagit</a>, un générateur static pour git (je n’aime pas les CGI, surtout quand ça peut avoir un accès sur mon dépot git), pour l’utiliser j’ai rajouté ces lines au 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 &lt; /git/index.html</code></pre></p> +cd /git &amp;&amp; stagit-index *.git &gt; /git/index.html</code></pre></p> <h2>Déployement vers blog</h2> <p>Celui-là sort une erreur(probablement parceque GIT_INDEX_FILE est pas censé être vide) mais ça fonctionne :P</p> <code>GIT_INDEX_FILE='' git --work-tree=/srv/web/hacktivis.me --git-dir=/git/blog.git checkout -f</code> @@ -31,8 +31,8 @@ printf "$update_f" stagit cd "$(pwd | sed s/.git$//)" &amp;&amp; stagit -c "$repo.cache" "$repo" &amp;&amp; is_ok printf "$update_f" stagit-index -cd /git &amp;&amp; stagit-index *.git &lt; /git/index.html &amp;&amp; is_ok +cd /git &amp;&amp; stagit-index *.git &gt; /git/index.html &amp;&amp; is_ok # Erreurs mais fonctionnel -grep blog &gt;&gt;&gt;$repo &amp;&amp; printf "$update_f" blog &amp;&amp; GIT_INDEX_FILE='' git --work-tree=/srv/web/hacktivis.me --git-dir=/git/blog.git checkout -f &amp;&amp; is_ok +grep blog &lt;&lt;&lt;$repo &amp;&amp; printf "$update_f" blog &amp;&amp; GIT_INDEX_FILE='' git --work-tree=/srv/web/hacktivis.me --git-dir=/git/blog.git checkout -f &amp;&amp; is_ok </code></pre>