Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Do not make empty commits
  • Loading branch information
Matthias Koeppe committed Sep 26, 2023
commit b92d9f42fe0c88e71fba61c5f36326ded19d454d
7 changes: 5 additions & 2 deletions .ci/merge-fixes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ else
git checkout -q test_head
if git merge --no-edit --squash -q pr-$a; then
echo "::endgroup::"
git commit -q -m "Merge https://github.com/$REPO/pull/$a" -a --allow-empty
echo "Merged #$a"
if git commit -q -m "Merge https://github.com/$REPO/pull/$a" -a --no-allow-empty; then
echo "Merged #$a"
else
echo "Empty, skipped"
fi
else
echo "::endgroup::"
echo "Failure merging #$a, resetting"
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ jobs:
# After applying the fixes, make sure all changes are marked as uncommitted changes.
run: |
if [ -r upstream/ci_fixes.patch ]; then
(cd worktree-image && git commit --quiet -m "current changes" --allow-empty -a && git am) < upstream/ci_fixes.patch
git reset --quiet old
git add --quiet -N .
(cd worktree-image && git commit -q -m "current changes" --allow-empty -a && git am; git reset --quiet old; git add -N .) < upstream/ci_fixes.patch
fi

- name: Incremental build, test changed files (sage -t --new)
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ jobs:
# After applying the fixes, make sure all changes are marked as uncommitted changes.
run: |
if [ -r upstream/ci_fixes.patch ]; then
(cd worktree-image && git commit -m "current changes" --allow-empty -a && git am) < upstream/ci_fixes.patch
git reset --quiet old
git add -N .
(cd worktree-image && git commit -q -m "current changes" --allow-empty -a && git am; git reset --quiet old; git add -N .) < upstream/ci_fixes.patch
fi

- name: Incremental build
Expand Down