mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 23:01:00 -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 owner="$2"
|
||||||
|
|
||||||
local dir="$DIR/self"
|
local dir="$DIR/self"
|
||||||
local sha=$(git rev-parse HEAD)
|
|
||||||
git clone . $dir
|
git clone . $dir
|
||||||
(
|
(
|
||||||
cd $dir
|
cd $dir
|
||||||
git checkout -b fortesting $sha
|
rm -fr .forgejo .git
|
||||||
git remote rm origin
|
git init
|
||||||
|
git checkout -b main
|
||||||
git remote add origin $forgejo/$owner/setup-forgejo
|
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.email root@example.com
|
||||||
git config user.name username
|
git config user.name username
|
||||||
git commit -m 'avoid workflow infinite recursion'
|
git push --force origin main
|
||||||
git push --force origin fortesting:main
|
|
||||||
git tag --force vTest HEAD
|
git tag --force vTest HEAD
|
||||||
git push --force origin vTest
|
git push --force origin vTest
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue