StGIT 0.14.3: extra space is added before e-mail on export after "stg edit"

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

StGIT 0.14.3: extra space is added before e-mail on export after "stg edit"

From: Andrey Borzenkov <hidden>
Date: 2016-06-15 22:45:29

Hi,

Funny problem. I have following export template:

Subject: [PATCH] %(shortdescr)s
From: %(authname)s %(authemail)s

%(longdescr)s
Signed-off-by: %(authname)s %(authemail)s

---

%(diffstat)s

So after "stg new", edit, "stg refres" (and any number of "stg refresh"es)
it exports OK. But once I did "stg edit patch", all subsequent "stg export patch"
will give (assuming author is me@foo.net):

From: My Name < me@foo.net>
...
Signed-off-by: My Name < me@foo.net>

Notice extra space between "<" and e-mail.

TIA

-andrey

Re: StGIT 0.14.3: extra space is added before e-mail on export after "stg edit"

From: Catalin Marinas <hidden>
Date: 2016-06-15 22:45:30

2008/10/15 Andrey Borzenkov [off-list ref]:
Funny problem. I have following export template:

Subject: [PATCH] %(shortdescr)s
From: %(authname)s %(authemail)s

%(longdescr)s
Signed-off-by: %(authname)s %(authemail)s
The default templates contain "%(authname)s <%(authemail)s>", i.e.
with the angle brackets arount authemail and I've never seen this
problem. Does it work if you change them (or use the default
templates)?

-- 
Catalin

Re: StGIT 0.14.3: extra space is added before e-mail on export after "stg edit"

From: Andrey Borzenkov <hidden>
Date: 2016-06-15 22:45:30

On Saturday 18 October 2008, Catalin Marinas wrote:
2008/10/15 Andrey Borzenkov [off-list ref]:
quoted
Funny problem. I have following export template:

Subject: [PATCH] %(shortdescr)s
From: %(authname)s %(authemail)s

%(longdescr)s
Signed-off-by: %(authname)s %(authemail)s
The default templates contain "%(authname)s <%(authemail)s>", i.e.
with the angle brackets arount authemail and I've never seen this
problem. Does it work if you change them (or use the default
templates)?
Well, my GIT_AUTHOR_EMAIL was with angle brackets. I do not remember, why
(apparently I had some issues in the past). I stripped brackets and changed
template, now it seems to work. I was never sure what exactly e-mail should
like like.

Thank you!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help