Patchwork [Consolidated,&,Tested,10/35] scripts/combo-layer: keep carriage returns at the end of lines

login
register
mail settings
Submitter Saul Wold
Date July 27, 2011, 7:47 a.m.
Message ID <da7e2be313ba0364d94d488d4557113d38065ab5.1311752531.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/8649/
State New, archived
Headers show

Comments

Saul Wold - July 27, 2011, 7:47 a.m.
From: Paul Eggleton <paul.eggleton@linux.intel.com>

Use --keep-cr option to "git am" or otherwise we lose carriage returns
which can be important for patches against files that use CRs.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 scripts/combo-layer |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/scripts/combo-layer b/scripts/combo-layer
index 84cc48f..d129175 100755
--- a/scripts/combo-layer
+++ b/scripts/combo-layer
@@ -254,7 +254,7 @@  def action_apply_patch(conf, args):
         for line in open(repo['patchlist']):
             patchfile = line.split()[0]
             lastrev = line.split()[1]
-            cmd = "git am -s -p1 %s" % patchfile
+            cmd = "git am --keep-cr -s -p1 %s" % patchfile
             logger.info("Apply %s" % patchfile )
             try:
                 runcmd(cmd)