mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 20:50:58 -05:00
reset git otherwise shallow update not allowed
This commit is contained in:
parent
f429ed3bf3
commit
e13126282a
1 changed files with 6 additions and 6 deletions
12
testdata/run.sh
vendored
12
testdata/run.sh
vendored
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue