diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-11-23 00:12:52 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-11-23 00:12:52 +0100 |
| commit | 99238e0e041c73c246bb647177b5f8b2911ab45e (patch) | |
| tree | f49e048079d5266c9e961dbc5b59c9d25c06cbe9 | |
| parent | 405e4031452cf4b26d84512969697295496f14a8 (diff) | |
| download | git-hooks-99238e0e041c73c246bb647177b5f8b2911ab45e.tar.gz git-hooks-99238e0e041c73c246bb647177b5f8b2911ab45e.zip | |
Fixed an older bug with download button
| -rwxr-xr-x | post-receive-stagit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/post-receive-stagit b/post-receive-stagit index 152a748..3284e83 100755 --- a/post-receive-stagit +++ b/post-receive-stagit | |||
| @@ -47,7 +47,7 @@ adddownloadbutton() { | |||
| 47 | git archive HEAD -o "$basedir/$name.zip" | 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=\"../$name.zip\">Download</a> |" . w \ | 50 | "<a href=\"$baseurl/$name.zip\">Download</a> |" . w \ |
| 51 | | ed -s "$1" > /dev/null | 51 | | ed -s "$1" > /dev/null |
| 52 | } | 52 | } |
| 53 | 53 | ||
