[PATCH] dim: handle parse failures in apply_pull better

Lukas Wunner lukas at wunner.de
Mon Apr 30 07:08:51 UTC 2018


On Mon, Apr 30, 2018 at 08:29:57AM +0200, Daniel Vetter wrote:
> We're relying on get fetch failing and set -e, but that doesn't work
> if we parse nothing: In that case git fetch just fetches upstream and
> succeed. Dave stumbled over this by feeding a .mbox with dos linefeeds
> into dim.

How about eliminating the carriage returns (not linefeeds!) by
automatically funneling stdin through /usr/bin/tr -d '\r'

(Sorry, I'm not familiar enough with dim source code and this
use case to provide a patch.)

Thanks,

Lukas


More information about the dim-tools mailing list