Skip to contentSkip to conversation

dim: Fixup Link: tag in apply-pull

PATCH In review Daniel Vetter 2 participants 2 messages Apr 4, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dim: Fixup Link: tag in apply-pull

Somehow fell apart again in testing, let's do the same thing as with apply-branch, where we also apply the Link: after the sob is added.

---
 dim | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
dim +2 -2
index 588e859cf9e6..33d5fd3c0303 100755
@@ -737,14 +737,14 @@ function dim_apply_pull
 
 	message_id=$(message_get_id $file)
 
+	git commit --amend -s --no-edit
 	if [ -n "$message_id" ]; then
-		dim_commit_add_tag "\nLink: http://patchwork.freedesktop.org/patch/msgid/$message_id"
+		dim_commit_add_tag "Link: http://patchwork.freedesktop.org/patch/msgid/$message_id"
 	else
 		echoerr "WARNING: No message-id found in the patch file."
 		rv=1
 	fi
 
-	git commit --amend -s --no-edit
 
 	eval $DRY $DIM_POST_APPLY_ACTION
 
Signature · 6 lines
2.11.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Daniel Vetter

Somehow fell apart again in testing, let's do the same thing as with apply-branch, where we also apply the Link: after the sob is added.

Quoted 24 lines
---
 dim | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
dim +2 -2
index 588e859cf9e6..33d5fd3c0303 100755
@@ -737,14 +737,14 @@ function dim_apply_pull
 
 	message_id=$(message_get_id $file)
 
+	git commit --amend -s --no-edit
 	if [ -n "$message_id" ]; then
-		dim_commit_add_tag "\nLink: http://patchwork.freedesktop.org/patch/msgid/$message_id"
+		dim_commit_add_tag "Link: http://patchwork.freedesktop.org/patch/msgid/$message_id"
 	else
 		echoerr "WARNING: No message-id found in the patch file."
 		rv=1
 	fi
 
-	git commit --amend -s --no-edit
 
 	eval $DRY $DIM_POST_APPLY_ACTION
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx