Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Re: StGIT cannot import properly from stdin

From: Catalin Marinas <hidden>
Date: 2016-06-15 22:42:07

On 21/09/05, Pierre Ossman [off-list ref] wrote:
The import command of stgit does not handle stdin in a very sane way.
The logic expects to be able to read the patch several times which isn't
possible with stdin. So for it to work you have to give it the patch twice.
It works for me with the latest snapshot. What might happen in your
case is a missing "---" line after the patch description. The import
command reads the sys.stdin file descriptor until the first "---"
line. After that, the git.apply() function will read the rest of the
lines and pass them to git-apply. You can put some prints in the
git.apply() function to check where it starts reading from.

Patches without description cannot be read from stdin at the moment.
Maybe I could add another option to prevent it from reading the
description.

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