From e13126282ab1049b2b1da55e0c35a558a6f2f656 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 25 Mar 2023 18:31:38 +0100 Subject: [PATCH] reset git otherwise shallow update not allowed --- testdata/run.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 )