aboutsummaryrefslogtreecommitdiff
path: root/post-receive-stagit
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-11-24 00:27:57 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2022-11-24 00:27:57 +0100
commit900eefafe2c4528d1f8cfaec5f471312237541dc (patch)
tree6f2d44a5b94d9b0f3a5bc58af3da7cf12b9a2595 /post-receive-stagit
parent576cd8b3ca3779e950e93a6642b0e1dcc07530f4 (diff)
downloadgit-hooks-900eefafe2c4528d1f8cfaec5f471312237541dc.tar.gz
git-hooks-900eefafe2c4528d1f8cfaec5f471312237541dc.zip
Avoid creating zip archive too many times
Diffstat (limited to '')
-rwxr-xr-xpost-receive-stagit2
1 files changed, 1 insertions, 1 deletions
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() {
21 cp -r "$repo" "$htdir" 21 cp -r "$repo" "$htdir"
22 cd "$htdir" 22 cd "$htdir"
23 stagit -l 100 "$repo" 23 stagit -l 100 "$repo"
24 git archive HEAD -o "$basedir/$name.zip"
24} 25}
25 26
26cpindexfile() { 27cpindexfile() {
@@ -44,7 +45,6 @@ formatreadme() {
44 45
45adddownloadbutton() { 46adddownloadbutton() {
46 cd "$htdir" 47 cd "$htdir"
47 git archive HEAD -o "$basedir/$name.zip"
48 printf '%s\n' \ 48 printf '%s\n' \
49 "/log\.html\">Log<\/a>" i \ 49 "/log\.html\">Log<\/a>" i \
50 "<a href=\"$baseurl/$name.zip\">Download</a> |" . w \ 50 "<a href=\"$baseurl/$name.zip\">Download</a> |" . w \

Generated with cgit - Back to sebastiano.tronto.net