Skip to content

Commit

Permalink
dist-git: make the cgitrc include file smaller
Browse files Browse the repository at this point in the history
In Fedora Copr, it goes from 550M to 94M.  This minimizes the issues
with cgit.  The additional metadata were default, or just stub, so we
can live with that.

Also, don't use `cat <<EOF` pattern to avoid unnecessary fork() calls by
shell, use echo build-tin.

Fixes: #2410
  • Loading branch information
praiskup committed Jun 27, 2023
1 parent e62ce87 commit 3a4b09c
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions dist-git/run/copr-dist-git-refresh-cgit
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,10 @@ single_repo ()
*.git) ;;
*) subpath=$subpath.git ;;
esac
cat <<EOF

echo "
repo.url=$subpath
repo.name=$subpath
repo.path=/$reposdir/$subpath/
repo.owner=
repo.desc=Unnamed repository; edit this file 'description' to name the repository.
repo.section=
repo.enable-blame=0
repo.enable-commit-graph=0
repo.enable-log-filecount=0
repo.enable-log-linecount=0
repo.enable-remote-branches=0
repo.enable-subject-links=0
repo.enable-html-serving=0
repo.hide=0
repo.ignore=0
EOF
repo.path=$reposdir/$subpath/"
}

tempfile_from ()
Expand Down

0 comments on commit 3a4b09c

Please sign in to comment.