Skip to contentSkip to conversation

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

DISCUSSION Andrey Borzenkov 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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 [email protected]):

From: My Name < [email protected]>
...

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

TIA

-andrey

#1 lore raw

2008/10/15 Andrey Borzenkov <[email protected]>:

Quoted 7 lines

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)?

Signature · 1 line
Catalin
#2 lore raw
Quoted 6 lines · Catalin Marinas

2008/10/15 Andrey Borzenkov <[email protected]>:

Quoted 5 lines

Funny problem. I have following export template:

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

Quoted 8 lines
Quoted 2 lines

%(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!