mirror of
https://code.forgejo.org/actions/cascading-pr
synced 2025-03-15 14:54:40 +01:00
git fetch origin, not $destination
This commit is contained in:
parent
ab3031942c
commit
89767f29db
1 changed files with 1 additions and 2 deletions
|
@ -124,7 +124,7 @@ function upsert_clone() {
|
|||
cd $TMPDIR/$direction
|
||||
git config credential.helper "store --file=$TMPDIR/$direction.git-credentials"
|
||||
if $fetch; then
|
||||
git fetch $direction
|
||||
git fetch origin
|
||||
fi
|
||||
git config user.email cascading-pr@example.com
|
||||
git config user.name cascading-pr
|
||||
|
@ -158,7 +158,6 @@ function update() {
|
|||
upsert_clone destination ${options[destination_head]} ${options[destination_clone]}
|
||||
(
|
||||
cd $TMPDIR/origin
|
||||
ls -l $TMPDIR/destination
|
||||
${options[update]} $TMPDIR/destination $TMPDIR/destination-pr.json $TMPDIR/origin-pr.json
|
||||
)
|
||||
push destination ${options[destination_head]} ${options[destination_clone]}
|
||||
|
|
Loading…
Add table
Reference in a new issue