git-hooks

Git hooks for my repositories
git clone https://git.tronto.net/git-hooks
Download | Log | Files | Refs | README

commit 900eefafe2c4528d1f8cfaec5f471312237541dc
parent 576cd8b3ca3779e950e93a6642b0e1dcc07530f4
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Thu, 24 Nov 2022 00:27:57 +0100

Avoid creating zip archive too many times

Diffstat:
Mpost-receive-stagit | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/post-receive-stagit b/post-receive-stagit @@ -21,6 +21,7 @@ genstagit() { cp -r "$repo" "$htdir" cd "$htdir" stagit -l 100 "$repo" + git archive HEAD -o "$basedir/$name.zip" } cpindexfile() { @@ -44,7 +45,6 @@ formatreadme() { adddownloadbutton() { cd "$htdir" - git archive HEAD -o "$basedir/$name.zip" printf '%s\n' \ "/log\.html\">Log<\/a>" i \ "<a href=\"$baseurl/$name.zip\">Download</a> |" . w \