Maintainers seem to like to supply fixed up pull requests in replies
to their previous attempt. Current dim then choked on that pile,
trying to pull the old one (but getting tripped by the various >
quotation marks).

Teach dim to look for a non-quoted pull.

Cc: Dave Airlie <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
---
 dim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dim b/dim
index 42f0c87c116b..0edb6c589e3b 100755
--- a/dim
+++ b/dim
@@ -1122,7 +1122,7 @@ function dim_apply_pull
        cat > $file
 
        pull_branch=$(message_print_body "$file" |
-               sed -ne '/[gG]it repository at:$/,/for you to fetch/{p}' |
+               sed -ne '/^[^>].*[gG]it repository at:$/,/for you to fetch/{p}' 
|
                sed -ne '3,$p' | sed -ne '0,/^$/p' | tr '\n' ' ')
 
        from_line=$(grep '^From:' $file)
-- 
2.24.0

_______________________________________________
dim-tools mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dim-tools

Reply via email to