From 900eefafe2c4528d1f8cfaec5f471312237541dc Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 24 Nov 2022 00:27:57 +0100 Subject: Avoid creating zip archive too many times --- post-receive-stagit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post-receive-stagit b/post-receive-stagit index 3284e83..c74bdc1 100755 --- 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 \ "Download |" . w \ -- cgit v1.3