commit - d1bce07bf94404b016e5a46c065dbdca11068337
commit + ec3c217bbb702f600b7a59426a483075d1df9c16
blob - c7d101e88a876c8ac6b5a6c97ba55ace209253ab
blob + f60699f20b4cbbc57b7432b1f320fee961f56ff1
--- post-receive
+++ post-receive
else repo="$PWD/.git"
fi
-dst="/var/www/htdocs/$(basename "$PWD" '.git')"
+dst=/var/www/htdocs/runbsd
raw="$dst/raw"
src="$dst/src"
git clone "$repo" "$raw"
(cd "$raw/.git" && git update-server-info)
-"/var/www/src/bin/ssg6" "$raw" "$dst" "$title" "$url" > /dev/null
-
-mkdir -p "$src"
-echo "${title}" > "$repo/owner"
-echo "${url##*//}" > "$repo/description"
-echo "${url}/raw/.git" > "$repo/url"
-(cd "$src" && stagit "$repo")
-cp -f "$src/log.html" "$src/index.html"
-cp -f "$dst/stagit/"* "$src/"
->&2 echo "[stagit] $(grep -c '"commit' "$src/log.html") commits"
-
-hostname > "$dst/hostname"
+/var/www/bin/ssg6 "$raw" "$dst" "$title" "$url" > /dev/null