I want to send .patch files that were generated by the git format-patch command via Outlook (I have to use Outlook where I work, no need to suggest me otherwise). The goal is only to have my code reviewed by a colleague before pushing my changes to the main repository. When I send my patch files as attachments, a > character gets inserted right at the beginning of my patch file.
Ex:
>From 7ff70407d24338e928fafcd89115f9844c21691b Mon Sep 17 00:00:00 2001
From: user <user@company.com>
Date: Wed, 21 Mar 2012 09:55:17 -0400
Subject: [PATCH] Blahblah...
This makes it impossible for git am to apply the patch on my colleague system.
I don’t know (and don’t know how to figure it out) how to validate if the modification occurs on the sending end or the receiving end.
Anyone knows what causes this? Are there some settings in Outlook that I should modify in order to avoid this?
Thanks in advance
This is related to an old Unix mailbox file format called mbox:
In your situation, it’s impossible (for us) to tell which component of your mail system might be prepending that
>.For use with Git, you can either delete the
>, or you can probably delete the entire line (since the email message headers are not relevant to Git).