threads / patch / 58185

patchcontrib/rerere-train: avoid useless gpg sign in training

Subject: [PATCH] contrib/rerere-train: avoid useless gpg sign in training

## tl;dr

3 messages between Jul 19, 2022 and Jul 19, 2022. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Celeste Liu· Jul 19, 2022, 11:40 UTC · lore
Signed-off-by: Celeste Liu <coelacanthus@outlook.com>
---
 contrib/rerere-train.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to contrib/rerere-train.sh +1 −1
diff --git a/contrib/rerere-train.sh b/contrib/rerere-train.sh
index 26b724c8c6..bd01e430ef 100755
--- a/contrib/rerere-train.sh
+++ b/contrib/rerere-train.sh
@@ -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
-- 
2.37.1
Junio C Hamano· Jul 19, 2022, 16:26 UTC · re: Celeste Liu · lore

Re: [PATCH] contrib/rerere-train: avoid useless gpg sign in training

Celeste Liu <coelacanthus@outlook.com> writes:
> Signed-off-by: Celeste Liu <coelacanthus@outlook.com>
> ---

Above your sign-off line is a space to explain why this change is needed. Write something like

    The user may have configured "git merge" to always require GPG
    signing the resulting commit.  As we run "git merge" not for the
    recreated merge commits, but merely to trigger merge conflicts,
    and we will discard the resulting commits, signing them is not
    necessary.
    Override such configuration that forces useless signing from the
    command line with the "--no-gpg-sign" optoin.
perhaps?
Show 16 quoted lines
>  contrib/rerere-train.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/contrib/rerere-train.sh b/contrib/rerere-train.sh
> index 26b724c8c6..bd01e430ef 100755
> --- a/contrib/rerere-train.sh
> +++ b/contrib/rerere-train.sh
> @@ -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
Celeste Liu· Jul 19, 2022, 17:31 UTC · re: Junio C Hamano · lore

Re: [PATCH] contrib/rerere-train: avoid useless gpg sign in training

at 09:26:02AM -0700, Junio C Hamano wrote:
Show 14 quoted lines
> Celeste Liu <coelacanthus@outlook.com> writes:
> needed.  Write something like
>
>     The user may have configured "git merge" to always require GPG
>     signing the resulting commit.  As we run "git merge" not for the
>     recreated merge commits, but merely to trigger merge conflicts,
>     and we will discard the resulting commits, signing them is not
>     necessary.
>
>     Override such configuration that forces useless signing from the
>     command line with the "--no-gpg-sign" optoin.
>
> perhaps?
>

Ok, I will add in next verison. (Sorry, forgot cc, resend)

← back to recent threads