Skip to content

Commit cc391fc

Browse files
CoelacanthusHexgitster
authored andcommitted
contrib/rerere-train: avoid useless gpg sign in training
Users may have configured "git merge" to always require GPG signing the resulting commits. We are not running "git merge" to re-create merge commits, but merely to replay merge conflicts, and we will immediately discard the resulting commits; there is no point in signing them. Override such configuration that forces useless signing from the command line with the "--no-gpg-sign" option. Signed-off-by: Celeste Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bbea4dc commit cc391fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/rerere-train.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ do
7575
continue
7676
fi
7777
git checkout -q "$parent1^0"
78-
if git merge $other_parents >/dev/null 2>&1
78+
if git merge --no-gpg-sign $other_parents >/dev/null 2>&1
7979
then
8080
# Cleanly merges
8181
continue

0 commit comments

Comments
 (0)