Skip to content

Commit 7464876

Browse files
committed
bin/make-snapshot.sh: Fix invalid composer.lock
Make absolutely sure to keep composer.json and composer.lock intact be it a merge conflict or not.
1 parent 856442e commit 7464876

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

bin/make-snapshot.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ fi
1919

2020
git checkout -b $BRANCH
2121

22-
git mv composer.lock composer.lock.bak
23-
git commit -am "Backup composer.lock"
24-
git merge --no-ff -m "Merge latest tag, package pipelines require it" $LATEST_TAG || (git checkout --ours composer.lock.bak && git add composer.lock.bak && git commit --no-edit)
25-
git mv -f composer.lock.bak composer.lock
26-
git commit -am "Restore composer.lock" || true # in case composer.lock was not modified
22+
git merge --no-ff --no-commit -m "Merge latest tag, package pipelines require it" $LATEST_TAG || true
23+
git restore -WS composer.json
24+
git restore -WS composer.lock
25+
git commit --no-edit
2726

2827
bin/make-release.sh "$NEXT_VERSION-dev" --no-checkout

0 commit comments

Comments
 (0)