reset git otherwise shallow update not allowed

This commit is contained in:
Earl Warren 2023-03-25 18:31:38 +01:00
parent f429ed3bf3
commit e13126282a
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

12
testdata/run.sh vendored
View file

@ -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
)