fixed typos

main
Linux User 2021-01-31 19:07:52 +01:00
parent f82acd5fb5
commit 220c6c5527
3 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ ddclient:
gitolite:
$(BUILD)
gitolite-stagit:
gitolite-pystagit:
$(BUILD)
git-daemon:

View File

@ -2,17 +2,17 @@
set -e
PYSTAGIT_BASE="${PYSTAGIT_BASE:-/var/lib/git/stagit}"
PYSTAGIT_BASE="${PYSTAGIT_BASE:-/var/lib/git/pystagit}"
GL_REPO_BASE="${GL_REPO_BASE:-/var/lib/git/repositories}"
mk_index () {
gitolite list-phy-repos | \
gitolite access % stagit R any | \
gitolite access % pystagit R any | \
awk \
-F'\t' \
-v d="${GL_REPO_BASE}" \
'{if ($3 !~ "DENIED") print d"/"$1".git"}' | \
xargs -r /usr/local/bin/stagit-index | \
xargs -r /usr/bin/pystagit-index | \
sed 's|\(<a href=".*\)/log.html\(">\)|\1\2|' > \
"${1}/index.html"
}

View File

@ -19,7 +19,7 @@ run_pystagit () {
fi
mkdir -p "${out_dir}" && \
cd "${out_dir}" && \
/usr/local/bin/pystagit "${repo_dir}" && \
/usr/bin/pystagit "${repo_dir}" && \
ln -sf files.html index.html
}