forgejo helper does not copy .git

it will create a new git repo from scratch
This commit is contained in:
Earl Warren 2023-04-03 09:07:46 +02:00
parent 22ff5f4704
commit 9b17c14d9d
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -62,7 +62,7 @@ function push() {
local token="$6" local token="$6"
local dir="$DIR/$project" local dir="$DIR/$project"
rsync -a $directory/ $dir/ rsync -a --exclude .git $directory/ $dir/
local workflows=$dir/.forgejo/workflows/*.yml local workflows=$dir/.forgejo/workflows/*.yml
if test "$(echo $workflows)" != "$workflows"; then if test "$(echo $workflows)" != "$workflows"; then