use custom template to init repo, don't show success msg

This commit is contained in:
Gitea 2022-04-02 10:50:34 +00:00
parent 960caab149
commit 7bee967865

View file

@ -12,4 +12,4 @@ if [[ ! $repo_name =~ ^.*\.git$ ]] ; then
repo_name="${repo_name}.git"
fi
git init --bare ${repo_name}
git init --bare --template=git-templates ${repo_name} 1>/dev/null