]> git.ipfire.org Git - thirdparty/git.git/commitdiff
contrib/rerere-train: avoid useless gpg sign in training
authorCeleste Liu <coelacanthus@outlook.com>
Tue, 19 Jul 2022 17:21:44 +0000 (01:21 +0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Jul 2022 18:24:08 +0000 (11:24 -0700)
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 <coelacanthus@outlook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/rerere-train.sh

index 26b724c8c6d9f273f112e10d1c7c58024403fea4..bd01e430ef7c7e2e19adf5d442606001a90394ee 100755 (executable)
@@ -75,7 +75,7 @@ do
                continue
        fi
        git checkout -q "$parent1^0"
-       if git merge $other_parents >/dev/null 2>&1
+       if git merge --no-gpg-sign $other_parents >/dev/null 2>&1
        then
                # Cleanly merges
                continue