Skip to content

Commit b92d9f4

Browse files
author
Matthias Koeppe
committed
Do not make empty commits
1 parent 21fc2b3 commit b92d9f4

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.ci/merge-fixes.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ else
2121
git checkout -q test_head
2222
if git merge --no-edit --squash -q pr-$a; then
2323
echo "::endgroup::"
24-
git commit -q -m "Merge https://github.com/$REPO/pull/$a" -a --allow-empty
25-
echo "Merged #$a"
24+
if git commit -q -m "Merge https://github.com/$REPO/pull/$a" -a --no-allow-empty; then
25+
echo "Merged #$a"
26+
else
27+
echo "Empty, skipped"
28+
fi
2629
else
2730
echo "::endgroup::"
2831
echo "Failure merging #$a, resetting"

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ jobs:
9999
# After applying the fixes, make sure all changes are marked as uncommitted changes.
100100
run: |
101101
if [ -r upstream/ci_fixes.patch ]; then
102-
(cd worktree-image && git commit --quiet -m "current changes" --allow-empty -a && git am) < upstream/ci_fixes.patch
103-
git reset --quiet old
104-
git add --quiet -N .
102+
(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
105103
fi
106104
107105
- name: Incremental build, test changed files (sage -t --new)

.github/workflows/doc-build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ jobs:
8585
# After applying the fixes, make sure all changes are marked as uncommitted changes.
8686
run: |
8787
if [ -r upstream/ci_fixes.patch ]; then
88-
(cd worktree-image && git commit -m "current changes" --allow-empty -a && git am) < upstream/ci_fixes.patch
89-
git reset --quiet old
90-
git add -N .
88+
(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
9189
fi
9290
9391
- name: Incremental build

0 commit comments

Comments
 (0)