git-server

git server-side stuff | stagit
git clone git://git.ckyln.com/~cem/hooks.git
Log | Files | Refs | README

commit c6fc3cf2d61a20ed3c466f7e3cd63c7f5c8d8b21
parent edf7237a12bf94a07aed54a49ea4fd5b4f2eb4d5
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 10 Jun 2020 11:07:08 +0300

minor fixes in tarball creation and index generation

Diffstat:
Mlib | 2+-
Mpost-receive | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib b/lib @@ -23,7 +23,7 @@ lsindex() { for file in *; do [ "$file" = index.html ] && continue [ -d "$file" ] && file="$file/" - printf '<li><a href="%s">&s</a></li>' "$file" "$file" + printf '<li><a href="%s">%s</a></li>' "$file" "$file" done printf '%s\n' "</ul></body></html" } diff --git a/post-receive b/post-receive @@ -60,7 +60,7 @@ ln -sf log.html index.html # Create archives and plain raw files [ "$ARCHIVE_ALL" = 1 ] || [ -f archive ] && { mkdir -p "$STAGIT_DIR/archive/$repository" - for file in refs/heads/* refs/tags/*; do + for file in refs/heads/* $(git tag -l); do # Skip tarball recreation for tags, but always recreate branches. case "$file" in refs/heads/*) recreate=1 ;; *) unset recreate; esac