diff --git a/testdata/run.sh b/testdata/run.sh index 9f63cb9..6e9e99f 100755 --- a/testdata/run.sh +++ b/testdata/run.sh @@ -74,18 +74,18 @@ function push_self() { local owner="$2" local dir="$DIR/self" - local sha=$(git rev-parse HEAD) git clone . $dir ( cd $dir - git checkout -b fortesting $sha - git remote rm origin + rm -fr .forgejo .git + git init + git checkout -b main git remote add origin $forgejo/$owner/setup-forgejo - git rm -r .forgejo + git add . + git commit -m 'initial commit' git config user.email root@example.com git config user.name username - git commit -m 'avoid workflow infinite recursion' - git push --force origin fortesting:main + git push --force origin main git tag --force vTest HEAD git push --force origin vTest )